Unread message fix when quitting gajim, see #1516
This commit is contained in:
parent
6d3696e83c
commit
2da7a542f8
|
@ -2072,7 +2072,12 @@ _('If "%s" accepts this request you will know his or her status.') % jid)
|
||||||
for win in gajim.interface.msg_win_mgr.windows():
|
for win in gajim.interface.msg_win_mgr.windows():
|
||||||
unrd = 0
|
unrd = 0
|
||||||
for ctrl in win.controls():
|
for ctrl in win.controls():
|
||||||
unrd += ctrl.nb_unread
|
if ctrl.type_id == message_control.TYPE_GC:
|
||||||
|
if gajim.config.get('notify_on_all_muc_messages'):
|
||||||
|
unrd += ctrl.nb_unread
|
||||||
|
else:
|
||||||
|
if ctrl.attention_flag:
|
||||||
|
unrd += 1
|
||||||
if unrd:
|
if unrd:
|
||||||
unread = True
|
unread = True
|
||||||
break
|
break
|
||||||
|
|
Loading…
Reference in New Issue