Commit a7c7689c authored by Philipp Hörist's avatar Philipp Hörist
Browse files

[pgp] Show correct message encryption icon

parent f9bea2d6
......@@ -157,6 +157,7 @@ class OldPGPPlugin(GajimPlugin):
key_id = app.config.get_per('accounts', account, 'keyid')
if key_id:
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)
......@@ -255,6 +256,7 @@ class OldPGPPlugin(GajimPlugin):
# Set xhtml to None so it doesnt get logged
obj.xhtml = None
obj.encrypted = self.encryption_name
......@@ -301,6 +303,9 @@ class OldPGPPlugin(GajimPlugin):
obj.msg_iq = stanza
def add_additional_data(self, data):
data['encrypted'] = {'name': self.encryption_name}
def print_msg_to_log(stanza):
""" Prints a stanza in a fancy way to the log """
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