bugfix: when we Drag and drop a contact that is connected with several resources
This commit is contained in:
parent
1e7afe35d6
commit
634440c762
1 changed files with 5 additions and 3 deletions
|
@ -1273,7 +1273,9 @@ class Roster_window:
|
||||||
grp_dest = model.get_value(model.iter_parent(iter_dest), 3)
|
grp_dest = model.get_value(model.iter_parent(iter_dest), 3)
|
||||||
if grp_source == grp_dest:
|
if grp_source == grp_dest:
|
||||||
return
|
return
|
||||||
for u in self.contacts[account][data]:
|
# We upgrade only the first user because user2.groups is a pointer to
|
||||||
|
# user1.groups
|
||||||
|
u = self.contacts[account][data][0]
|
||||||
u.groups.remove(grp_source)
|
u.groups.remove(grp_source)
|
||||||
u.groups.append(grp_dest)
|
u.groups.append(grp_dest)
|
||||||
self.plugin.send('UPDUSER', account, (u.jid, u.name, u.groups))
|
self.plugin.send('UPDUSER', account, (u.jid, u.name, u.groups))
|
||||||
|
|
Loading…
Add table
Reference in a new issue