diff --git a/src/roster_window.py b/src/roster_window.py
index c1886fabde75ad49e77f94c2659a9b3ee38adfad..9810129c99469ae4d5a256c0954c68288be8a7af 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)