Fix error when opening sign-in/out notification
This commit is contained in:
parent
b449567600
commit
a6b8ecf6f5
|
@ -1572,9 +1572,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)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue