From f19dc782979a9bbe0f76bd2e5232937527e8d2ac Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Sun, 12 Mar 2006 18:35:10 +0000 Subject: [PATCH] don't show hidden contacts that are not in observer group. Fixes #1494 --- src/roster_window.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/roster_window.py b/src/roster_window.py index 2c6e1e2ec..32c5f2f7a 100644 --- a/src/roster_window.py +++ b/src/roster_window.py @@ -222,8 +222,11 @@ class RosterWindow: hide = False observer = False - if hide and contact.sub == 'from': - observer = True + if hide: + if contact.sub == 'from': + observer = True + else: + return if (contact.show in ('offline', 'error') or hide) and \ not showOffline and (not _('Transports') in contact.groups or \