Skip to content
Snippets Groups Projects
Commit b1d32661 authored by Yann Leboulanger's avatar Yann Leboulanger
Browse files

fix logic for showing notification window

parent 30d379ff
No related branches found
No related tags found
No related merge requests found
......@@ -739,8 +739,10 @@ first = True):
return True
if popup == 'no':
return False
if type and not gajim.config.get(type) and first:
if type and (not gajim.config.get(type) or not first):
return False
if type and gajim.config.get(type) and first:
return True
if gajim.config.get('autopopupaway'): # always show notification
return True
if gajim.connections[account].connected in (2, 3): # we're online or chat
......
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