Sync groups of metacontacts to fix a potential bug. Contact iters of brothers might not be found, though they are in roster.
This commit is contained in:
parent
b1a2951634
commit
1e68eb3de9
|
@ -332,6 +332,10 @@ class RosterWindow:
|
||||||
assert len(parent_iters) > 0,\
|
assert len(parent_iters) > 0,\
|
||||||
"Big brother is not yet in roster!"
|
"Big brother is not yet in roster!"
|
||||||
|
|
||||||
|
# Do not confuse get_contact_iter
|
||||||
|
# Sync groups of family members
|
||||||
|
contact.groups = big_brother_contact.groups[:]
|
||||||
|
|
||||||
for child_iter in parent_iters:
|
for child_iter in parent_iters:
|
||||||
it = self.model.append(child_iter, (None, contact.get_shown_name(),
|
it = self.model.append(child_iter, (None, contact.get_shown_name(),
|
||||||
'contact', contact.jid, account, None, None))
|
'contact', contact.jid, account, None, None))
|
||||||
|
|
Loading…
Reference in New Issue