From 1e68eb3de9d0e93784c7d0703764d68889fa9aa1 Mon Sep 17 00:00:00 2001 From: Stephan Erb Date: Tue, 6 May 2008 17:43:03 +0000 Subject: [PATCH] Sync groups of metacontacts to fix a potential bug. Contact iters of brothers might not be found, though they are in roster. --- src/roster_window.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/roster_window.py b/src/roster_window.py index 0947de722..2af6cbc42 100644 --- a/src/roster_window.py +++ b/src/roster_window.py @@ -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))