Commit 1b5272c8 authored by Andrey Gursky's avatar Andrey Gursky Committed by Philipp Hörist

Fix receipts for chat

This is a regression from e3050697
parent 9d6fac69
......@@ -78,7 +78,7 @@ class Receipts:
event.resource)
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
@staticmethod
......
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