Fix status tray notification

Clicking on a new message notification in the status tray didnt open the chat
This commit is contained in:
Philipp Hörist 2018-12-26 12:43:42 +01:00
parent 5b1f8bcc48
commit 911674d580
1 changed files with 5 additions and 2 deletions

View File

@ -1470,10 +1470,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