From 38b3425aac95fc2912e9388b21a997b939411fd7 Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Sun, 3 Sep 2006 20:27:19 +0000 Subject: [PATCH] remove offline contact from roster when there is no more unread events --- src/roster_window.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/roster_window.py b/src/roster_window.py index c1886fabd..9810129c9 100644 --- a/src/roster_window.py +++ b/src/roster_window.py @@ -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)