Commit fc5a1035 authored by Philipp Hörist's avatar Philipp Hörist

[pgp] Modify event obj only if we encrypt

parent f41a747e
...@@ -229,6 +229,7 @@ class OldPGPPlugin(GajimPlugin): ...@@ -229,6 +229,7 @@ class OldPGPPlugin(GajimPlugin):
None, conn=conn, jid=obj.jid, message=obj.message, None, conn=conn, jid=obj.jid, message=obj.message,
error=error, time_=time.time(), session=obj.session)) error=error, time_=time.time(), session=obj.session))
return return
self.cleanup_stanza(obj) self.cleanup_stanza(obj)
if msgenc: if msgenc:
...@@ -244,6 +245,7 @@ class OldPGPPlugin(GajimPlugin): ...@@ -244,6 +245,7 @@ class OldPGPPlugin(GajimPlugin):
obj.xhtml = None obj.xhtml = None
obj.encrypted = self.encryption_name obj.encrypted = self.encryption_name
print_msg_to_log(obj.msg_iq) print_msg_to_log(obj.msg_iq)
callback(obj) callback(obj)
def encrypt_file(self, file, account, callback): def encrypt_file(self, file, account, callback):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment