From b2cc2147c3b936cbe4468e9f978942c00cc3ea8b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philipp=20H=C3=B6rist?= Date: Wed, 26 Dec 2018 12:43:42 +0100 Subject: [PATCH] Fix status tray notification Clicking on a new message notification in the status tray didnt open the chat --- gajim/gui_interface.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/gajim/gui_interface.py b/gajim/gui_interface.py index 0b5ec76d4..348afa2cc 100644 --- a/gajim/gui_interface.py +++ b/gajim/gui_interface.py @@ -1645,10 +1645,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