From 86afb2cacc10c1560404c2320dc6809c894a016b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philipp=20H=C3=B6rist?= Date: Fri, 2 Jun 2017 03:12:27 +0200 Subject: [omemo] Set encryption name in event obj --- omemo/omemoplugin.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'omemo/omemoplugin.py') 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) -- cgit v1.2.3