Skip to content
Snippets Groups Projects
Commit 0190ac90 authored by nkour's avatar nkour
Browse files

[jim] fix logic bug

parent d1bb5cbc
No related branches found
No related tags found
No related merge requests found
......@@ -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):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment