[Telepathy-commits] [telepathy-gabble/master] conn-olpc: view joined/left announcement protocol

Guillaume Desmottes guillaume.desmottes at collabora.co.uk
Fri Sep 26 10:02:33 PDT 2008


20080717125206-7fe3f-6fbf0cb4f6284a4f337d2dc23a2aa1ecf8444396.gz
---
 src/conn-olpc.c                            |    2 +-
 tests/twisted/olpc/olpc-activity-search.py |    6 +++---
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/conn-olpc.c b/src/conn-olpc.c
index d90ca90..8a76fde 100644
--- a/src/conn-olpc.c
+++ b/src/conn-olpc.c
@@ -3541,7 +3541,7 @@ activity_membership_change (GabbleConnection *conn,
   TpHandleRepoIface *room_repo = tp_base_connection_get_handles (
       (TpBaseConnection *) conn, TP_HANDLE_TYPE_ROOM);
 
-  id_str = lm_message_node_get_attribute (activity_node, "id");
+  id_str = lm_message_node_get_attribute (activity_node, "view");
   if (id_str == NULL)
     return;
 
diff --git a/tests/twisted/olpc/olpc-activity-search.py b/tests/twisted/olpc/olpc-activity-search.py
index 5f487b3..01a8517 100644
--- a/tests/twisted/olpc/olpc-activity-search.py
+++ b/tests/twisted/olpc/olpc-activity-search.py
@@ -303,7 +303,7 @@ def test(q, bus, conn, stream):
 
     activity = message.addElement((NS_OLPC_ACTIVITY, 'activity'))
     activity['room'] = 'room1 at conference.localhost'
-    activity['id'] = '0'
+    activity['view'] = '0'
     joined = activity.addElement((None, 'joined'))
     joined['jid'] = 'marcel at localhost'
     properties = joined.addElement((NS_OLPC_BUDDY_PROPS, "properties"))
@@ -350,7 +350,7 @@ def test(q, bus, conn, stream):
 
     activity = message.addElement((NS_OLPC_ACTIVITY, 'activity'))
     activity['room'] = 'room1 at conference.localhost'
-    activity['id'] = '0'
+    activity['view'] = '0'
     left = activity.addElement((None, 'left'))
     left['jid'] = 'marcel at localhost'
 
@@ -386,7 +386,7 @@ def test(q, bus, conn, stream):
 
     activity = message.addElement((NS_OLPC_ACTIVITY, 'activity'))
     activity['room'] = 'room1 at conference.localhost'
-    activity['id'] = '0'
+    activity['view'] = '0'
     left = activity.addElement((None, 'left'))
     left['jid'] = 'jean at localhost'
 
-- 
1.5.6.5




More information about the Telepathy-commits mailing list