summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/tabs.py2
1 files changed, 2 insertions, 0 deletions
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