Fix receipts for chat

This is a regression from e3050697
This commit is contained in:
Andrey Gursky 2018-11-27 02:17:25 +01:00 committed by Philipp Hörist
parent 9d6fac6942
commit 1b5272c854
1 changed files with 1 additions and 1 deletions

View File

@ -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