Fix error when opening sign-in/out notification

This commit is contained in:
Philipp Hörist 2018-12-17 14:59:47 +01:00
parent b449567600
commit a6b8ecf6f5
1 changed files with 4 additions and 3 deletions

View File

@ -1572,9 +1572,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)