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 50435ba885
commit ac9bec3ed9
1 changed files with 4 additions and 3 deletions

View File

@ -1647,9 +1647,10 @@ class Interface:
fjid = jid fjid = jid
contact = None contact = None
if resource: if resource:
contact = app.contacts.get_contact(account, jid, resource) contact = app.contacts.get_contact(account, jid, resource) or highest_contact
if not contact: if contact is None:
contact = highest_contact # Maybe we deleted the contact from the roster
return
ctrl = self.new_chat(contact, account, resource=resource) ctrl = self.new_chat(contact, account, resource=resource)