Commit b2cc2147 authored by Philipp Hörist's avatar Philipp Hörist

Fix status tray notification

Clicking on a new message notification in the status tray didnt open the chat
parent f5a08c89
......@@ -1645,10 +1645,13 @@ def handle_event(self, account, fjid, type_):
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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment