From b1ebd06fe9e4cb3d66d8fd97ee7c13e6a40d31eb Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Fri, 10 Mar 2006 17:56:03 +0000 Subject: [PATCH] we now show sign in/out notif, even if a chat is opened with this contact. Fixes #1682 --- src/gajim.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/gajim.py b/src/gajim.py index 508d16bea..21110b979 100755 --- a/src/gajim.py +++ b/src/gajim.py @@ -395,8 +395,7 @@ class Interface: if gajim.config.get_per('soundevents', 'contact_connected', 'enabled') and gajim.allow_notifications[account]: helpers.play_sound('contact_connected') - if not gajim.interface.msg_win_mgr.has_window(jid, account) and \ - not gajim.awaiting_events[account].has_key(jid) and \ + if not gajim.awaiting_events[account].has_key(jid) and \ gajim.config.get('notify_on_signin') and \ gajim.allow_notifications[account]: show_notification = False @@ -430,8 +429,7 @@ class Interface: if gajim.config.get_per('soundevents', 'contact_disconnected', 'enabled'): helpers.play_sound('contact_disconnected') - if not gajim.interface.msg_win_mgr.has_window(jid, account) and \ - not gajim.awaiting_events[account].has_key(jid) and \ + if not gajim.awaiting_events[account].has_key(jid) and \ gajim.config.get('notify_on_signout'): show_notification = False # check OUR status and if we allow notifications for that status