[pgp] Modify event obj only if we encrypt
This commit is contained in:
@@ -229,6 +229,7 @@ class OldPGPPlugin(GajimPlugin):
|
||||
None, conn=conn, jid=obj.jid, message=obj.message,
|
||||
error=error, time_=time.time(), session=obj.session))
|
||||
return
|
||||
|
||||
self.cleanup_stanza(obj)
|
||||
|
||||
if msgenc:
|
||||
@@ -244,6 +245,7 @@ class OldPGPPlugin(GajimPlugin):
|
||||
obj.xhtml = None
|
||||
obj.encrypted = self.encryption_name
|
||||
print_msg_to_log(obj.msg_iq)
|
||||
|
||||
callback(obj)
|
||||
|
||||
def encrypt_file(self, file, account, callback):
|
||||
|
||||
Reference in New Issue
Block a user