From 767adbb5f25374184afd4e527ff4ef14a43c3888 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philipp=20H=C3=B6rist?= Date: Fri, 2 Jun 2017 03:27:12 +0200 Subject: [PATCH] [pgp] Set encryption name in event obj --- pgp/pgpplugin.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pgp/pgpplugin.py b/pgp/pgpplugin.py index 4f03601..94ba945 100644 --- a/pgp/pgpplugin.py +++ b/pgp/pgpplugin.py @@ -145,7 +145,7 @@ class OldPGPPlugin(GajimPlugin): encmsg = enc_tag.getData() key_id = gajim.config.get_per('accounts', account, 'keyid') if key_id: - obj.encrypted = 'xep27' + obj.encrypted = self.encryption_name self.decrypt_queue.put([encmsg, key_id, obj, conn, callback]) if not self.thread: self.thread = threading.Thread(target=self.worker) @@ -242,6 +242,7 @@ class OldPGPPlugin(GajimPlugin): # Set xhtml to None so it doesnt get logged obj.xhtml = None + obj.encrypted = self.encryption_name print_msg_to_log(obj.msg_iq) callback(obj)