Fix status tray notification
Clicking on a new message notification in the status tray didnt open the chat
This commit is contained in:
parent
5b1f8bcc48
commit
911674d580
|
@ -1470,10 +1470,13 @@ class Interface:
|
||||||
app.events.change_jid(account, fjid, jid)
|
app.events.change_jid(account, fjid, jid)
|
||||||
resource = None
|
resource = None
|
||||||
fjid = jid
|
fjid = jid
|
||||||
|
|
||||||
contact = None
|
contact = None
|
||||||
if resource:
|
if resource:
|
||||||
contact = app.contacts.get_contact(account, jid, resource) or highest_contact
|
contact = app.contacts.get_contact(account, jid, resource)
|
||||||
if contact is None:
|
if not contact:
|
||||||
|
contact = highest_contact
|
||||||
|
if not contact:
|
||||||
# Maybe we deleted the contact from the roster
|
# Maybe we deleted the contact from the roster
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue