update open chat window when we change contact's nick. Fixes #1599

This commit is contained in:
Yann Leboulanger 2006-02-21 19:10:55 +00:00
parent 4d1664ec93
commit a786a13d4c
1 changed files with 6 additions and 0 deletions

View File

@ -2311,6 +2311,12 @@ _('If "%s" accepts this request you will know his or her status.') % jid)
u.name = new_text
gajim.connections[account].update_contact(jid, new_text, u.groups)
self.draw_contact(jid, account)
# Update opened chat
ctrl = gajim.interface.msg_win_mgr.get_control(jid, account)
if ctrl:
ctrl.update_ui()
win = gajim.interface.msg_win_mgr.get_window(jid, account)
win.redraw_tab(ctrl)
elif type == 'group':
# in C_JID cilumn it's not escaped
old_name = model[iter][C_JID].decode('utf-8')