we now show sign in/out notif, even if a chat is opened with this contact. Fixes #1682

This commit is contained in:
Yann Leboulanger 2006-03-10 17:56:03 +00:00
parent e335c53247
commit b1ebd06fe9
1 changed files with 2 additions and 4 deletions

View File

@ -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