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)