Do not print unwanted notifications for file_* events

This commit is contained in:
Jean-Marie Traissard 2006-11-03 05:41:11 +00:00
parent dd0173cb1f
commit 1a12bcc831
2 changed files with 2 additions and 2 deletions

View File

@ -755,7 +755,7 @@ def sanitize_filename(filename):
return 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): advanced_notif_num = None, is_first_message = True):
'''is it allowed to show nofication? '''is it allowed to show nofication?
check OUR status and if we allow notifications for that status check OUR status and if we allow notifications for that status

View File

@ -968,7 +968,7 @@ class Interface:
self.add_event(account, jid, 'gc-invitation', (room_jid, array[2], self.add_event(account, jid, 'gc-invitation', (room_jid, array[2],
array[3])) 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', path = os.path.join(gajim.DATA_DIR, 'pixmaps', 'events',
'gc_invitation.png') 'gc_invitation.png')
path = gtkgui_helpers.get_path_to_generic_or_avatar(path) path = gtkgui_helpers.get_path_to_generic_or_avatar(path)