reset chatstate when contact go offline or error

This commit is contained in:
Yann Leboulanger 2005-10-20 10:21:51 +00:00
parent adcdcbc411
commit 0b1bf176e9
1 changed files with 3 additions and 0 deletions

View File

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