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:
Stephan Erb 2008-05-06 17:43:03 +00:00
parent b1a2951634
commit 1e68eb3de9
1 changed files with 4 additions and 0 deletions

View File

@ -332,6 +332,10 @@ class RosterWindow:
assert len(parent_iters) > 0,\
"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:
it = self.model.append(child_iter, (None, contact.get_shown_name(),
'contact', contact.jid, account, None, None))