From 7c1679eae73db91f8b005bb36a703a7082818a0c Mon Sep 17 00:00:00 2001 From: Travis Shirk <travis@pobox.com> Date: Tue, 20 Sep 2005 02:24:25 +0000 Subject: [PATCH] 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. --- src/gajim.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gajim.py b/src/gajim.py index 8275a48a3e..cc707f3ccb 100755 --- a/src/gajim.py +++ b/src/gajim.py @@ -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: -- GitLab