From 26f33196d70b619d27f06ad1c605a5da61b08739 Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Sun, 12 Mar 2006 20:33:36 +0000 Subject: [PATCH] when we connect and already have opened chat windows, update them with new contact instances. Fixes #1590 --- src/roster_window.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/roster_window.py b/src/roster_window.py index 32c5f2f7a..dc9f7973a 100644 --- a/src/roster_window.py +++ b/src/roster_window.py @@ -843,6 +843,11 @@ class RosterWindow: if contact1.resource: jid_with_resource += '/' + contact1.resource gajim.connections[account].request_vcard(jid_with_resource) + # If we already have a chat window opened, update it with new contact + # instance + chat_control = gajim.interface.msg_win_mgr.get_control(ji, account) + if chat_control: + chat_control.contact = contact1 def chg_contact_status(self, contact, show, status, account): '''When a contact changes his or her status'''