From 285a7949f58da0f3fa4e4f0d25634c57f5adb796 Mon Sep 17 00:00:00 2001 From: Jean-Marie Traissard Date: Tue, 4 Jul 2006 21:23:42 +0000 Subject: [PATCH] Get real jid of the chatcontrol when we talk to specific ressource. This prevent systray icon to be stuck to incomming message in some rare case (new message window + auto_open). Thanks beerfan for spoting this rare case :) --- src/chat_control.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/chat_control.py b/src/chat_control.py index 3d5733760..01bc2d9cf 100644 --- a/src/chat_control.py +++ b/src/chat_control.py @@ -636,7 +636,10 @@ class ChatControlBase(MessageControl): def on_conversation_vadjustment_value_changed(self, widget): if not self.nb_unread: return - jid = self.contact.jid + if self.resource: + jid = self.contact.get_full_jid() + else: + jid = self.contact.jid if self.conv_textview.at_the_end() and \ self.parent_win.get_active_control() == self and \ self.parent_win.window.is_active():