when we connect and already have opened chat windows, update them with new contact instances. Fixes #1590

This commit is contained in:
Yann Leboulanger 2006-03-12 20:33:36 +00:00
parent 1eeb16dc2d
commit 26f33196d7
1 changed files with 5 additions and 0 deletions

View File

@ -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'''