Commit ac9bec3e authored by Philipp Hörist's avatar Philipp Hörist

Fix error when opening sign-in/out notification

parent 50435ba8
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment