Commit a7a644b6 authored by Yann Leboulanger's avatar Yann Leboulanger

stop sending chatstates when we get an error message from a contact. Fixes #8010

parent 8b25309d
......@@ -2712,6 +2712,8 @@ class ChatControl(ChatControlBase):
if not contact.supports(NS_CHATSTATES):
return
if contact.our_chatstate == False:
return
# if the new state we wanna send (state) equals
# the current state (contact.our_chatstate) then return
......
......@@ -415,6 +415,7 @@ class Interface:
account=account, name=nick, show=show)
ctrl = self.new_private_chat(gc_c, account, session)
ctrl.contact.our_chatstate = False
ctrl.print_conversation(_('Error %(code)s: %(msg)s') % {
'code': obj.error_code, 'msg': obj.error_msg}, 'status')
return
......
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