diff --git a/gajim/gui_interface.py b/gajim/gui_interface.py index 0b5ec76d4..348afa2cc 100644 --- a/gajim/gui_interface.py +++ b/gajim/gui_interface.py @@ -1645,10 +1645,13 @@ class Interface: app.events.change_jid(account, fjid, jid) resource = None fjid = jid + contact = None if resource: - contact = app.contacts.get_contact(account, jid, resource) or highest_contact - if contact is None: + contact = app.contacts.get_contact(account, jid, resource) + if not contact: + contact = highest_contact + if not contact: # Maybe we deleted the contact from the roster return