Commit 3b8ac21e authored by Tijmen de Mes's avatar Tijmen de Mes

Prevent history messages with no contact

parent 39f030b1
......@@ -708,6 +708,9 @@ class MessageManager(object, metaclass=Singleton):
if message.contact != account.id:
self._save_pgp_key(message['content'], message['contact'])
elif content_type.startswith('text/'):
if message['contact'] is None:
continue
from blink.contacts import URIUtils
contact, contact_uri = URIUtils.find_contact(message['contact'])
......
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