remove offline contact from roster when there is no more unread events
This commit is contained in:
parent
2b06b55994
commit
38b3425aac
|
@ -397,7 +397,7 @@ class RosterWindow:
|
||||||
if (contact.show in ('offline', 'error') or hide) and \
|
if (contact.show in ('offline', 'error') or hide) and \
|
||||||
not showOffline and (not _('Transports') in contact.groups or \
|
not showOffline and (not _('Transports') in contact.groups or \
|
||||||
gajim.connections[account].connected < 2) and \
|
gajim.connections[account].connected < 2) and \
|
||||||
len(gajim.events.get_events(account, contact.jid)) == 0:
|
len(gajim.events.get_events(account, contact.jid, ['chat'])) == 0:
|
||||||
self.remove_contact(contact, account)
|
self.remove_contact(contact, account)
|
||||||
else:
|
else:
|
||||||
self.draw_contact(contact.jid, account)
|
self.draw_contact(contact.jid, account)
|
||||||
|
|
Loading…
Reference in New Issue