From 858e472ef48c79ba61e8d9f8a3940e0c073fc040 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philipp=20H=C3=B6rist?= Date: Sun, 1 Jul 2018 19:00:43 +0200 Subject: [PATCH] Fix showing notifications in the roster There is a config setting in Gajim that allows to issue notifications even if a chatcontrol is open. The config setting was only used for system/desktop notifications in that case. Now it also controls if a notification is shown in the roster. Fixes #9223 --- gajim/notify.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gajim/notify.py b/gajim/notify.py index c1e9260b1..64151094b 100644 --- a/gajim/notify.py +++ b/gajim/notify.py @@ -45,6 +45,8 @@ def get_show_in_roster(event, account, jid, session=None): if event == 'gc_message_received': return True if event == 'message_received': + if app.config.get('autopopup_chat_opened'): + return True if session and session.control: return False return True