[telepathy-gabble/master] Use build_contact_caps to emit ContactCapsChanged

Will Thompson will.thompson at collabora.co.uk
Wed Sep 30 05:37:40 PDT 2009


There's no point in looking up the handle's capabilities again, given
that we already know what the new set of caps is.
---
 src/connection.c |    5 +----
 1 files changed, 1 insertions(+), 4 deletions(-)

diff --git a/src/connection.c b/src/connection.c
index 2784f67..4eaf13d 100644
--- a/src/connection.c
+++ b/src/connection.c
@@ -2404,8 +2404,6 @@ ERROR:
  *                          D-BUS EXPORTED METHODS                          *
  ****************************************************************************/
 
-static void gabble_connection_get_handle_contact_capabilities (
-    GabbleConnection *self, TpHandle handle, GPtrArray *arr);
 static void gabble_free_enhanced_contact_capabilities (GPtrArray *caps);
 
 /**
@@ -2508,8 +2506,7 @@ _emit_capabilities_changed (GabbleConnection *conn,
 
   caps_arr = g_ptr_array_new ();
 
-  gabble_connection_get_handle_contact_capabilities (conn, handle,
-      caps_arr);
+  gabble_connection_build_contact_caps (conn, handle, new_set, caps_arr);
 
   hash = g_hash_table_new (NULL, NULL);
   g_hash_table_insert (hash, GUINT_TO_POINTER (handle), caps_arr);
-- 
1.5.6.5




More information about the telepathy-commits mailing list