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)