Skip to content
Snippets Groups Projects
Commit b963fd1b authored by Yann Leboulanger's avatar Yann Leboulanger
Browse files

clean gajim.groups when we rename a group. Fixes #1778

parent 5ff9b0fc
No related branches found
No related tags found
No related merge requests found
...@@ -2522,6 +2522,9 @@ _('If "%s" accepts this request you will know his or her status.') % jid) ...@@ -2522,6 +2522,9 @@ _('If "%s" accepts this request you will know his or her status.') % jid)
self.add_contact_to_roster(contact.jid, account) self.add_contact_to_roster(contact.jid, account)
gajim.connections[account].update_contact(contact.jid, gajim.connections[account].update_contact(contact.jid,
contact.name, contact.groups) contact.name, contact.groups)
# If last removed iter was not visible, gajim.groups is not cleaned
if gajim.groups[account].has_key(old_name):
del gajim.groups[account][old_name]
def on_service_disco_menuitem_activate(self, widget, account): def on_service_disco_menuitem_activate(self, widget, account):
server_jid = gajim.config.get_per('accounts', account, 'hostname') server_jid = gajim.config.get_per('accounts', account, 'hostname')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment