Skip to content
Snippets Groups Projects
Commit 7c1679ea authored by nicfit's avatar nicfit
Browse files

Fixed a bug whereby chatstates were disable incorrectly with the following scenario:

client #1: send client #2 a message (state is ask)
client #2: recv's message and set's chatstate active since the message used JEP 85
client #1: sends another message, but since client #2 has not responded yet it sends not chatstate
client #2: recv's message and set's chatstate to False because JEP 85 was not used
(Note, if client #2 would have responded after the first message chatstates would be in effect.
parent 7bcdb9c6
No related branches found
No related tags found
No related merge requests found
......@@ -386,7 +386,7 @@ class Interface:
contact.chatstate = 'active' # no more
chat_win.handle_incoming_chatstate(account, jid, chatstate)
else:
elif contact.chatstate != 'active':
# got no valid jep85 answer, peer does not support it
contact.chatstate = False
else:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment