diff options
author | Danielle Madeley <danielle.madeley@collabora.co.uk> | 2012-01-17 17:10:43 +0800 |
---|---|---|
committer | Danielle Madeley <danielle.madeley@collabora.co.uk> | 2012-01-17 17:10:43 +0800 |
commit | 25a44d2984058a38f54ab6bd68027e524342e34b (patch) | |
tree | a698ac149fa82e1c93f0d1d25c45bc68d1ff9fc7 /libempathy/empathy-client-factory.c | |
parent | f17363e49737c2ad6bf304d7ed1dd2ccf8ca2b4c (diff) | |
parent | 5c615ca9c2ffcff23925c154e36dfeccf416ec30 (diff) | |
download | gsoc2013-empathy-25a44d2984058a38f54ab6bd68027e524342e34b.tar gsoc2013-empathy-25a44d2984058a38f54ab6bd68027e524342e34b.tar.gz gsoc2013-empathy-25a44d2984058a38f54ab6bd68027e524342e34b.tar.bz2 gsoc2013-empathy-25a44d2984058a38f54ab6bd68027e524342e34b.tar.lz gsoc2013-empathy-25a44d2984058a38f54ab6bd68027e524342e34b.tar.xz gsoc2013-empathy-25a44d2984058a38f54ab6bd68027e524342e34b.tar.zst gsoc2013-empathy-25a44d2984058a38f54ab6bd68027e524342e34b.zip |
Merge branch 'master' into call1
Diffstat (limited to 'libempathy/empathy-client-factory.c')
-rw-r--r-- | libempathy/empathy-client-factory.c | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/libempathy/empathy-client-factory.c b/libempathy/empathy-client-factory.c index 65c0d267a..2a8559441 100644 --- a/libempathy/empathy-client-factory.c +++ b/libempathy/empathy-client-factory.c @@ -134,15 +134,21 @@ empathy_client_factory_dup_contact_features (TpSimpleClientFactory *factory, TpConnection *connection) { GArray *features; - TpContactFeature feature; + TpContactFeature extra_features[] = { + TP_CONTACT_FEATURE_ALIAS, + TP_CONTACT_FEATURE_PRESENCE, + TP_CONTACT_FEATURE_AVATAR_TOKEN, + TP_CONTACT_FEATURE_AVATAR_DATA, + TP_CONTACT_FEATURE_CAPABILITIES, + /* Needed by empathy_individual_add_menu_item_new to check if a contact + * is already in the contact list. This feature is pretty cheap to + * prepare as it doesn't prepare the full roster. */ + TP_CONTACT_FEATURE_SUBSCRIPTION_STATES, + }; features = chainup->dup_contact_features (factory, connection); - /* Needed by empathy_individual_add_menu_item_new to check if a contact is - * already in the contact list. This feature is pretty cheap to prepare as - * it doesn't prepare the full roster. */ - feature = TP_CONTACT_FEATURE_SUBSCRIPTION_STATES; - g_array_append_val (features, feature); + g_array_append_vals (features, extra_features, G_N_ELEMENTS (extra_features)); return features; } |