From 1b5272c85427432b9e7272b49240b0c2cc9d1ad2 Mon Sep 17 00:00:00 2001 From: Andrey Gursky Date: Tue, 27 Nov 2018 02:17:25 +0100 Subject: [PATCH] Fix receipts for chat This is a regression from e3050697 --- gajim/common/modules/receipts.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gajim/common/modules/receipts.py b/gajim/common/modules/receipts.py index fdc46ae71..74cbf587d 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