From c799869f68e1a5f81e852cddd11363e1db84fc35 Mon Sep 17 00:00:00 2001 From: Nikos Kouremenos Date: Mon, 27 Mar 2006 22:12:41 +0000 Subject: [PATCH] use helper func --- src/gajim.py | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/gajim.py b/src/gajim.py index 4fae18ec3..03adbcd99 100755 --- a/src/gajim.py +++ b/src/gajim.py @@ -494,13 +494,7 @@ class Interface: 'enabled') and not first: helpers.play_sound('next_message_received') - show_notification = False - if gajim.config.get('notify_on_new_message'): - # check OUR status and if we allow notifications for that status - if gajim.config.get('autopopupaway'): # always show notification - show_notification = True - elif gajim.connections[account].connected in (2, 3): # we're online or chat - show_notification = True + show_notification = gajim.show_notification() jid_of_control = jid if chat_control and chat_control.type_id == message_control.TYPE_GC: