From aa0c054f9f7939c25d8c69ab61d0fda1a6d64005 Mon Sep 17 00:00:00 2001 From: mathieui Date: Sun, 29 May 2011 16:40:41 +0200 Subject: =?UTF-8?q?don=E2=80=99t=20leak=20presences=20with=20chat=20states?= =?UTF-8?q?=20when=20xa=20or=20away?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/tabs.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') diff --git a/src/tabs.py b/src/tabs.py index 3d49b77d..2a409b1a 100644 --- a/src/tabs.py +++ b/src/tabs.py @@ -295,6 +295,8 @@ class ChatTab(Tab): Send an empty chatstate message """ if not isinstance(self, MucTab) or self.get_room().joined: + if state in ('active', 'inactive', 'gone') and self.core.status.show in ('xa', 'away'): + return msg = self.core.xmpp.make_message(self.get_name()) msg['type'] = self.message_type msg['chat_state'] = state -- cgit v1.2.3