remove offline contact from roster when there is no more unread events

This commit is contained in:
Yann Leboulanger 2006-09-03 20:27:19 +00:00
parent 2b06b55994
commit 38b3425aac
1 changed files with 1 additions and 1 deletions

View File

@ -397,7 +397,7 @@ class RosterWindow:
if (contact.show in ('offline', 'error') or hide) and \
not showOffline and (not _('Transports') in contact.groups or \
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)
else:
self.draw_contact(contact.jid, account)