From 0b1bf176e927e72cac024afbafcb780585c89bab Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Thu, 20 Oct 2005 10:21:51 +0000 Subject: [PATCH] reset chatstate when contact go offline or error --- src/gajim.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/gajim.py b/src/gajim.py index 9b1c89902..ddf2fb4a9 100755 --- a/src/gajim.py +++ b/src/gajim.py @@ -333,6 +333,9 @@ class Interface: return elif gajim.contacts[account].has_key(ji): # It isn't an agent + # reset chatstate if needed: + if array[1] in ('offline', 'error'): + user1.chatstate = None self.roster.chg_contact_status(user1, array[1], array[2], account) # play sound if old_show < 2 and new_show > 1: