[Sugar-devel] [PATCH sugar-toolkit] Shared activity does not announce the 'buddy-left' signal #10800

Simon Schampijer simon at schampijer.de
Wed Apr 13 10:28:47 EDT 2011


This fixes a copy and paste error. A good test case is the Memorize
activity since we listen for the 'buddy-left' signal there to
update the members list inside the activity.

Signed-off-by: Simon Schampijer <simon at laptop.org>
---
 src/sugar/presence/activity.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/sugar/presence/activity.py b/src/sugar/presence/activity.py
index b616510..fb4c990 100644
--- a/src/sugar/presence/activity.py
+++ b/src/sugar/presence/activity.py
@@ -341,7 +341,7 @@ class Activity(gobject.GObject):
         if self._channel_self_handle in removed:
             removed.remove(self._channel_self_handle)
         if removed:
-            self._resolve_handles(added, reply_cb=self._remove_buddies)
+            self._resolve_handles(removed, reply_cb=self._remove_buddies)
 
     def _add_buddies(self, contact_ids):
         for contact_id in contact_ids:
-- 
1.7.4



More information about the Sugar-devel mailing list