summaryrefslogtreecommitdiff
path: root/src/tabs.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/tabs.py')
-rw-r--r--src/tabs.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/tabs.py b/src/tabs.py
index fff73467..0301538c 100644
--- a/src/tabs.py
+++ b/src/tabs.py
@@ -294,10 +294,11 @@ class ChatTab(Tab):
"""
Send an empty chatstate message
"""
- msg = self.core.xmpp.make_message(self.get_name())
- msg['type'] = self.message_type
- msg['chat_state'] = state
- msg.send()
+ if not isinstance(self, MucTab) or self.get_room().joined:
+ msg = self.core.xmpp.make_message(self.get_name())
+ msg['type'] = self.message_type
+ msg['chat_state'] = state
+ msg.send()
def send_composing_chat_state(self, empty_before, empty_after):
"""