stop sending chatstates when we get an error message from a contact. Fixes #8010
This commit is contained in:
parent
5978d84615
commit
0fc96927b6
|
@ -2746,6 +2746,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
|
||||
|
|
|
@ -416,6 +416,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
|
||||
|
|
Loading…
Reference in New Issue