From 0190ac90a4ccb00110d226a9b01ad37b03d1e7f9 Mon Sep 17 00:00:00 2001 From: Nikos Kouremenos Date: Mon, 27 Mar 2006 23:15:19 +0000 Subject: [PATCH] [jim] fix logic bug --- src/common/helpers.py | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/common/helpers.py b/src/common/helpers.py index a5da080fd..f78140061 100644 --- a/src/common/helpers.py +++ b/src/common/helpers.py @@ -720,12 +720,11 @@ def sanitize_filename(filename): def allow_showing_notification(account): '''is it allowed to show nofication?''' - 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 - return True - if gajim.connections[account].connected in (2, 3): # we're online or chat - return True + # check OUR status and if we allow notifications for that status + if gajim.config.get('autopopupaway'): # always show notification + return True + if gajim.connections[account].connected in (2, 3): # we're online or chat + return True return False def allow_popup_window(account):