From bd868245e053e34f755fa1633f6d113304fb92a5 Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Mon, 7 Nov 2005 21:15:15 +0000 Subject: [PATCH] support JEP 162 (show / hide some contacts according to their subscription / ask status) --- src/roster_window.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/roster_window.py b/src/roster_window.py index df78d5825..4800a355a 100644 --- a/src/roster_window.py +++ b/src/roster_window.py @@ -143,6 +143,19 @@ class RosterWindow: elif user.groups == []: user.groups.append(_('General')) + hide = True + if user.sub in ('both', 'to'): + hide = False + elif user.ask == 'subscribe': + hide = False + # FIXME: uncomment when we support contacts in no group +# elif user.name or len(user.groups): + elif user.name: + hide = False + + # JEP-0162 + if hide: + return if user.show in ('offline', 'error') and \ not showOffline and (not _('Transports') in user.groups or \ gajim.connections[account].connected < 2) and \