prevent to add a contact twice in the same group
This commit is contained in:
parent
883bff804c
commit
619aaf9f73
1 changed files with 2 additions and 1 deletions
|
@ -2518,7 +2518,8 @@ _('If "%s" accepts this request you will know his or her status.') % jid)
|
||||||
# set them in the new one and remove it from the old
|
# set them in the new one and remove it from the old
|
||||||
contact.groups.remove(old_name)
|
contact.groups.remove(old_name)
|
||||||
self.remove_contact(contact, account)
|
self.remove_contact(contact, account)
|
||||||
contact.groups.append(new_text)
|
if not new_text in contact.groups:
|
||||||
|
contact.groups.append(new_text)
|
||||||
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)
|
||||||
|
|
Loading…
Add table
Reference in a new issue