From: Guillaume Desmottes Date: Thu, 3 Nov 2011 14:00:57 +0000 (+0100) Subject: client-factory: prepare TP_CONNECTION_FEATURE_CONTACT_LIST_PROPERTIES X-Git-Url: https://git.0d.be/?p=empathy.git;a=commitdiff_plain;h=63ec3726a865e5ae6b5ed5cdbcee290a3415f707 client-factory: prepare TP_CONNECTION_FEATURE_CONTACT_LIST_PROPERTIES https://bugzilla.gnome.org/show_bug.cgi?id=663327 --- diff --git a/libempathy/empathy-client-factory.c b/libempathy/empathy-client-factory.c index beaa6215..edc5463c 100644 --- a/libempathy/empathy-client-factory.c +++ b/libempathy/empathy-client-factory.c @@ -161,6 +161,12 @@ empathy_client_factory_dup_connection_features (TpSimpleClientFactory *factory, 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; }