From 24413948ab19928f48868044b70e59b509ebfdaa Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Tue, 13 Nov 2007 21:59:13 +0000 Subject: [PATCH] update gajim.last_message_time var when a room participant changes his nick. fixes #3555 --- src/message_window.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/message_window.py b/src/message_window.py index 4aae156ed..c2ebe2769 100644 --- a/src/message_window.py +++ b/src/message_window.py @@ -525,6 +525,10 @@ class MessageWindow: return self._controls[acct][new_jid] = self._controls[acct][old_jid] del self._controls[acct][old_jid] + if old_jid in gajim.last_message_time[acct]: + gajim.last_message_time[acct][new_jid] = \ + gajim.last_message_time[acct][old_jid] + del gajim.last_message_time[acct][old_jid] def controls(self): for ctrl_dict in self._controls.values():