Commit 8da03ee1 authored by Yann Leboulanger's avatar Yann Leboulanger

fix zeroconf name conflict answer.

parent 8a1305c0
......@@ -1672,9 +1672,10 @@ class Interface:
def handle_event_zc_name_conflict(self, account, data):
def on_ok(new_name):
gajim.config.set_per('accounts', account, 'name', new_name)
show = gajim.connections[account].old_show
status = gajim.connections[account].status
gajim.connections[account].username = new_name
gajim.connections[account].change_status(status, '')
gajim.connections[account].change_status(show, status)
def on_cancel():
gajim.connections[account].change_status('offline', '')
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment