| 1205 | | if gajim.interface.msg_win_mgr.has_window(contact.jid, account): |
| 1206 | | win = gajim.interface.msg_win_mgr.get_window(contact.jid, account) |
| 1207 | | ctrl = win.get_control(contact.jid, account) |
| 1208 | | ctrl.contact = gajim.contacts.get_contact_with_highest_priority( |
| 1209 | | account, contact.jid) |
| 1210 | | ctrl.update_ui() |
| 1211 | | win.redraw_tab(ctrl) |
| 1212 | | |
| 1213 | | uf_show = helpers.get_uf_show(show) |
| 1214 | | if status: |
| 1215 | | ctrl.print_conversation(_('%s is now %s (%s)') % (name, uf_show, |
| 1216 | | status), 'status') |
| 1217 | | else: # No status message |
| 1218 | | ctrl.print_conversation(_('%s is now %s') % (name, uf_show), |
| 1219 | | 'status') |
| | 1205 | if gajim.interface.msg_win_mgr.has_window(contact.jid, account): |
| | 1206 | win = gajim.interface.msg_win_mgr.get_window(contact.jid, account) |
| | 1207 | ctrl = win.get_control(contact.jid, account) |
| | 1208 | ctrl.contact = gajim.contacts.get_contact_with_highest_priority( |
| | 1209 | account, contact.jid) |
| | 1210 | ctrl.update_ui() |
| | 1211 | win.redraw_tab(ctrl) |
| | 1212 | |
| | 1213 | uf_show = helpers.get_uf_show(show) |
| | 1214 | if status: |
| | 1215 | ctrl.print_conversation(_('%s is now %s (%s)') % (name, uf_show, |
| | 1216 | status), 'status') |
| | 1217 | else: # No status message |
| | 1218 | ctrl.print_conversation(_('%s is now %s') % (name, uf_show), |
| | 1219 | 'status') |