]> git.0d.be Git - empathy.git/blobdiff - libempathy/empathy-client-factory.c
client-factory: prepare TP_CONNECTION_FEATURE_CONTACT_LIST_PROPERTIES
[empathy.git] / libempathy / empathy-client-factory.c
index f7529bf2e590177e98dbe2d30ddd4d5e918cb343..edc5463c99092d8b9be88a5cb92b10d0161dfe36 100644 (file)
@@ -158,6 +158,15 @@ empathy_client_factory_dup_connection_features (TpSimpleClientFactory *factory,
   feature = TP_CONNECTION_FEATURE_BALANCE;
   g_array_append_val (features, feature);
 
+  feature = TP_CONNECTION_FEATURE_CONTACT_BLOCKING;
+  g_array_append_val (features, feature);
+
+  /* Most empathy-* may allow user to add a contact to his contact list. We
+   * need this property to check if the connection allows it. It's cheap to
+   * prepare anyway as it will just call GetAll() on the ContactList iface. */
+  feature = TP_CONNECTION_FEATURE_CONTACT_LIST_PROPERTIES;
+  g_array_append_val (features, feature);
+
   return features;
 }