From 485dc4bcbb6bb2919a7416dec4b46bfa6dc66833 Mon Sep 17 00:00:00 2001 From: Nikos Kouremenos Date: Mon, 8 Aug 2005 14:43:50 +0000 Subject: [PATCH] reset chatstate of a contact that signed out --- src/gajim.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/gajim.py b/src/gajim.py index 560638c75..a4d007b52 100755 --- a/src/gajim.py +++ b/src/gajim.py @@ -361,7 +361,11 @@ class Interface: self.roster.popup_notification_windows.append(instance) if self.remote and self.remote.is_enabled(): self.remote.raise_signal('ContactPresence', - (account, array)) + (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',