don't show hidden contacts that are not in observer group. Fixes #1494

This commit is contained in:
Yann Leboulanger 2006-03-12 18:35:10 +00:00
parent 4f2460e21c
commit f19dc78297
1 changed files with 5 additions and 2 deletions

View File

@ -222,8 +222,11 @@ class RosterWindow:
hide = False hide = False
observer = False observer = False
if hide and contact.sub == 'from': if hide:
if contact.sub == 'from':
observer = True observer = True
else:
return
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 \