From 1a12bcc831beb8b76371bb0a1616d718e0c73d4a Mon Sep 17 00:00:00 2001 From: Jean-Marie Traissard Date: Fri, 3 Nov 2006 05:41:11 +0000 Subject: [PATCH] Do not print unwanted notifications for file_* events --- src/common/helpers.py | 2 +- src/gajim.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/common/helpers.py b/src/common/helpers.py index 9ee58cd91..77b58c505 100644 --- a/src/common/helpers.py +++ b/src/common/helpers.py @@ -755,7 +755,7 @@ def sanitize_filename(filename): return filename -def allow_showing_notification(account, type = None, +def allow_showing_notification(account, type = 'notify_on_new_message', advanced_notif_num = None, is_first_message = True): '''is it allowed to show nofication? check OUR status and if we allow notifications for that status diff --git a/src/gajim.py b/src/gajim.py index 2a0d2723f..7bc35b5d6 100755 --- a/src/gajim.py +++ b/src/gajim.py @@ -968,7 +968,7 @@ class Interface: self.add_event(account, jid, 'gc-invitation', (room_jid, array[2], array[3])) - if helpers.allow_showing_notification(account, 'notify_on_new_message'): + if helpers.allow_showing_notification(account): path = os.path.join(gajim.DATA_DIR, 'pixmaps', 'events', 'gc_invitation.png') path = gtkgui_helpers.get_path_to_generic_or_avatar(path)