From ac9bec3ed90c399a8830b48d3db2bdab1f3c4850 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philipp=20H=C3=B6rist?= Date: Mon, 17 Dec 2018 14:59:47 +0100 Subject: [PATCH] Fix error when opening sign-in/out notification --- gajim/gui_interface.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/gajim/gui_interface.py b/gajim/gui_interface.py index e62646ac4..657361577 100644 --- a/gajim/gui_interface.py +++ b/gajim/gui_interface.py @@ -1647,9 +1647,10 @@ class Interface: fjid = jid contact = None if resource: - contact = app.contacts.get_contact(account, jid, resource) - if not contact: - contact = highest_contact + contact = app.contacts.get_contact(account, jid, resource) or highest_contact + if contact is None: + # Maybe we deleted the contact from the roster + return ctrl = self.new_chat(contact, account, resource=resource)