From b49eb06010bbac18df51ef51c7ad4499a6bc6e83 Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Sat, 16 Sep 2006 11:17:24 +0000 Subject: [PATCH] differentiate single messages and chat messages when checking notifications. Fixes #2420 --- src/roster_window.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/roster_window.py b/src/roster_window.py index 09fd1d3bd..ae9105d9a 100644 --- a/src/roster_window.py +++ b/src/roster_window.py @@ -2558,12 +2558,12 @@ _('If "%s" accepts this request you will know his or her status.') % jid) # We save it in a queue type_ = 'chat' + event_type = 'message_received' if msg_type == 'normal': type_ = 'normal' - show_in_roster = notify.get_show_in_roster('message_received', account, - contact) - show_in_systray = notify.get_show_in_systray('message_received', account, - contact) + event_type = 'single_message_received' + show_in_roster = notify.get_show_in_roster(event_type, account, contact) + show_in_systray = notify.get_show_in_systray(event_type, account, contact) event = gajim.events.create_event(type_, (msg, subject, msg_type, tim, encrypted, resource, msg_id), show_in_roster = show_in_roster, show_in_systray = show_in_systray)