Commit dc08adf6 authored by mathieui's avatar mathieui

Do not lock on the “composing” chat state with otr

might send too many stanzas when send_chat_states is false, but I don’t
care.
parent 71ae73ca
......@@ -482,6 +482,9 @@ class Plugin(BasePlugin):
ctx = self.contexts.get(name)
if ctx and ctx.state == STATE_ENCRYPTED:
ctx.sendMessage(0, msg['body'].encode('utf-8'))
if not tab.send_chat_state('active'):
tab.send_chat_state('inactive', always_send=True)
tab.add_message(msg['body'],
nickname=self.core.own_nick or tab.own_nick,
nick_color=theming.get_theme().COLOR_OWN_NICK,
......
......@@ -583,6 +583,7 @@ class ChatTab(Tab):
msg['chat_state'] = state
self.chat_state = state
msg.send()
return True
def send_composing_chat_state(self, empty_after):
"""
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment