changeset 0d2936367209 in /home/hg/repos/gajim
details:http://hg.gajim.org/gajim?cmd=changeset;node=0d2936367209 description: [steelman] Check sound allowance for contact_connected and contact_disconnected events. Fixes #6118
diffstat:
src/notify.py | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-)
diffs (22 lines):
diff -r 25d17db44ab3 -r 0d2936367209 src/notify.py --- a/src/notify.py Tue Dec 21 22:28:03 2010 +0300 +++ b/src/notify.py Tue Dec 21 23:33:45 2010 +0100 @@ -162,14 +162,16 @@ do_popup = True if gajim.config.get_per('soundevents', 'contact_connected', 'enabled') and not gajim.block_signed_in_notifications[account] and \ - not block_transport: + not block_transport and helpers.allow_sound_notification(account, + event, advanced_notif_num): do_sound = True elif event == 'contact_disconnected': status_message = parameters if helpers.allow_showing_notification(account, 'notify_on_signout'): do_popup = True if gajim.config.get_per('soundevents', 'contact_disconnected', - 'enabled'): + 'enabled') and helpers.allow_sound_notification(account, + event, advanced_notif_num): do_sound = True elif event == 'new_message': message_type = parameters[0]