diff --git a/gajim/common/modules/receipts.py b/gajim/common/modules/receipts.py index fdc46ae71b231a8af04f51da685e81aabc1e0ca4..74cbf587d332e55b6c9ce1d275ee064972727a55 100644 --- a/gajim/common/modules/receipts.py +++ b/gajim/common/modules/receipts.py @@ -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