Commit f942e2c7 authored by Andrey Gursky's avatar Andrey Gursky

Fix receipts for chat

This is a regression from e3050697
parent e70ea74f
......@@ -78,7 +78,7 @@ class Receipts:
contact = app.contacts.get_contact(self._account, event.jid)
if contact is None and contact.sub not in ('to', 'none'):
if contact is not None and contact.sub not in ('to', 'none'):
return contact
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment