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.
This commit is contained in:
parent
7bcdb9c6ef
commit
7c1679eae7
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue