Commit 237e807f authored by Tijmen de Mes's avatar Tijmen de Mes

Fixed pgp key from replicated messages

parent 3913afa4
...@@ -715,7 +715,7 @@ class MessageManager(object, metaclass=Singleton): ...@@ -715,7 +715,7 @@ class MessageManager(object, metaclass=Singleton):
elif content_type == 'application/sylk-conversation-read': elif content_type == 'application/sylk-conversation-read':
pass pass
elif content_type == 'text/pgp-public-key': elif content_type == 'text/pgp-public-key':
if message.contact != account.id: if message['contact'] != account.id:
self._save_pgp_key(message['content'], message['contact']) self._save_pgp_key(message['content'], message['contact'])
elif content_type.startswith('text/'): elif content_type.startswith('text/'):
if message['contact'] is None: if message['contact'] is None:
......
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