reset chatstate of a contact that signed out

This commit is contained in:
Nikos Kouremenos 2005-08-08 14:43:50 +00:00
parent 0c64b91de4
commit 485dc4bcbb
1 changed files with 5 additions and 1 deletions

View File

@ -363,6 +363,10 @@ class Interface:
self.remote.raise_signal('ContactPresence',
(account, array))
# when contact signs out we reset his chatstate
contact = gaim.get_first_contact_instance_from_jid(acccount, jid)
contact.chatstate = None
elif old_show > 1 and new_show < 2:
if gajim.config.get_per('soundevents', 'contact_disconnected',
'enabled'):