diff options
author | Philipp Hörist <forenjunkie@chello.at> | 2017-06-02 04:12:27 +0300 |
---|---|---|
committer | Philipp Hörist <forenjunkie@chello.at> | 2017-06-02 04:12:27 +0300 |
commit | 86afb2cacc10c1560404c2320dc6809c894a016b (patch) | |
tree | 6b0caa6043bdd81bd0ebd4c83a24e9f7ba5d5f5b /omemo | |
parent | 90887631a7c5b765e1749ed433bc8bc6c243eec0 (diff) |
[omemo] Set encryption name in event obj
Diffstat (limited to 'omemo')
-rw-r--r-- | omemo/omemoplugin.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/omemo/omemoplugin.py b/omemo/omemoplugin.py index 1450c7e..b017c02 100644 --- a/omemo/omemoplugin.py +++ b/omemo/omemoplugin.py @@ -405,7 +405,7 @@ class OmemoPlugin(GajimPlugin): self.print_msg_to_log(msg.msg_) msg.msgtxt = plaintext - msg.encrypted = 'OMEMO' + msg.encrypted = self.encryption_name return elif msg.msg_.getTag('body'): @@ -498,7 +498,7 @@ class OmemoPlugin(GajimPlugin): # Gajim bug: there must be a body or the message # gets dropped from history msg.stanza.setBody(plaintext) - msg.encrypted = 'OMEMO' + msg.encrypted = self.encryption_name elif msg.stanza.getTag('body'): account = msg.conn.name @@ -674,6 +674,7 @@ class OmemoPlugin(GajimPlugin): self.print_msg_to_log(event.correction_msg) else: self.print_msg_to_log(event.msg_iq) + callback(event) except Exception as e: log.debug(e) @@ -732,7 +733,7 @@ class OmemoPlugin(GajimPlugin): event.msg_iq.addChild(node=store) self.print_msg_to_log(event.msg_iq) event.xhtml = None - + event.encrypted = self.encryption_name callback(event) except Exception as e: log.debug(e) |