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:
Travis Shirk 2005-09-20 02:24:25 +00:00
parent 7bcdb9c6ef
commit 7c1679eae7
1 changed files with 1 additions and 1 deletions

View File

@ -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: