[Telepathy-commits] [telepathy-glib/master] Emit group-members-changed[-detailed] on MembersChangedDetailed

Will Thompson will.thompson at collabora.co.uk
Mon Jan 5 07:40:38 PST 2009


---
 telepathy-glib/channel-group.c |   14 ++++++++++++++
 1 files changed, 14 insertions(+), 0 deletions(-)

diff --git a/telepathy-glib/channel-group.c b/telepathy-glib/channel-group.c
index 58873ed..e2e7455 100644
--- a/telepathy-glib/channel-group.c
+++ b/telepathy-glib/channel-group.c
@@ -893,9 +893,23 @@ tp_channel_group_members_changed_detailed_cb (TpChannel *self,
                                               gpointer unused G_GNUC_UNUSED,
                                               GObject *weak_obj G_GNUC_UNUSED)
 {
+  const gchar *message;
+  guint actor;
+  guint reason;
+
   DEBUG ("%p MembersChangedDetailed: added %u, removed %u, "
       "moved %u to LP and %u to RP",
       self, added->len, removed->len, local_pending->len, remote_pending->len);
+
+  actor = tp_asv_get_uint32 (details, "actor", NULL);
+  reason = tp_asv_get_uint32 (details, "reason", NULL);
+  message = tp_asv_get_string (details, "message");
+
+  if (message == NULL)
+    message = "";
+
+  handle_members_changed (self, message, added, removed, local_pending,
+      remote_pending, actor, reason, details);
 }
 
 
-- 
1.5.6.5




More information about the Telepathy-commits mailing list