fix logic for showing notification window
This commit is contained in:
parent
30d379ff86
commit
b1d32661fc
|
@ -739,8 +739,10 @@ first = True):
|
||||||
return True
|
return True
|
||||||
if popup == 'no':
|
if popup == 'no':
|
||||||
return False
|
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
|
return False
|
||||||
|
if type and gajim.config.get(type) and first:
|
||||||
|
return True
|
||||||
if gajim.config.get('autopopupaway'): # always show notification
|
if gajim.config.get('autopopupaway'): # always show notification
|
||||||
return True
|
return True
|
||||||
if gajim.connections[account].connected in (2, 3): # we're online or chat
|
if gajim.connections[account].connected in (2, 3): # we're online or chat
|
||||||
|
|
Loading…
Reference in New Issue