Do not print unwanted notifications for file_* events
This commit is contained in:
parent
dd0173cb1f
commit
1a12bcc831
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue