From ca65a1a097fe58e01bfaafa383f5a8cee1dc59ca Mon Sep 17 00:00:00 2001 From: Nikos Kouremenos Date: Sat, 14 Oct 2006 13:22:37 +0000 Subject: [PATCH] commit something to complete [7176] --- src/roster_window.py | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/src/roster_window.py b/src/roster_window.py index 887aa01ef..9d6484ea1 100644 --- a/src/roster_window.py +++ b/src/roster_window.py @@ -227,17 +227,11 @@ class RosterWindow: if not gajim.config.get('show_transports_group'): return contact.groups = [_('Transports')] - # JEP-0162 - hide = True - if contact.sub in ('both', 'to'): - hide = False - elif contact.ask == 'subscribe': - hide = False - elif contact.name or len(contact.groups): - hide = False - + hide = contact.is_hidden_from_roster() + if hide and contact.sub != 'from': + return observer = contact.is_observer() if observer: