From 042a09cccd592509431008b811a83da556d3cfc0 Mon Sep 17 00:00:00 2001 From: Tomeu Vizoso Date: Mon, 15 Jun 2009 15:46:08 +0200 Subject: [PATCH] Expose telepathy_room_handle (cassidy) #757 --- src/sugar/presence/activity.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/sugar/presence/activity.py b/src/sugar/presence/activity.py index dc02aa1f..13abf5d4 100644 --- a/src/sugar/presence/activity.py +++ b/src/sugar/presence/activity.py @@ -68,7 +68,7 @@ class Activity(gobject.GObject): def __init__(self, bus, new_obj_cb, del_obj_cb, object_path): """Initialse the activity interface, connecting to service""" gobject.GObject.__init__(self) - self._telepathy_room_handle = None + self.telepathy_room_handle = None self._object_path = object_path self._ps_new_object = new_obj_cb self._ps_del_object = del_obj_cb @@ -307,7 +307,7 @@ class Activity(gobject.GObject): found_text_channel = False found_tubes_channel = False - for chan_path, chan_iface, handle_type, handle_ in chans: + for chan_path, chan_iface, handle_type, handle in chans: if handle_type != telepathy.HANDLE_TYPE_ROOM: return @@ -317,6 +317,7 @@ class Activity(gobject.GObject): ready_handler=text_chan_ready, error_handler=error_handler) found_text_channel = True + self.telepathy_room_handle = handle elif chan_iface == telepathy.CHANNEL_TYPE_TUBES: telepathy.client.Channel(