From: Xavier Claessens Date: Tue, 10 Apr 2012 15:28:21 +0000 (+0200) Subject: Add back TpContact features X-Git-Tag: FOLKS_0_7_0~18 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=889ac810497d74fc43e1530de06af50956c69cdd;p=platform%2Fupstream%2Ffolks.git Add back TpContact features This is for backward compatibility https://bugzilla.gnome.org/show_bug.cgi?id=630822 --- diff --git a/backends/telepathy/lib/tpf-persona-store.vala b/backends/telepathy/lib/tpf-persona-store.vala index 5f4f73d..bb4002b 100644 --- a/backends/telepathy/lib/tpf-persona-store.vala +++ b/backends/telepathy/lib/tpf-persona-store.vala @@ -440,6 +440,24 @@ public class Tpf.PersonaStore : Folks.PersonaStore this._account_manager = AccountManager.dup (); + /* FIXME: Add all contact features on AM's factory. We should not + * force preparing all features but let app define what it needs, + * but this is for backward compatibility. + * Note that if application already prepared TpContacts before + * preparing this store, this will have no effect on existing + * contacts. */ + var factory = this._account_manager.get_factory (); + factory.add_contact_features ({ + ContactFeature.ALIAS, + ContactFeature.AVATAR_DATA, + ContactFeature.AVATAR_TOKEN, + ContactFeature.CAPABILITIES, + ContactFeature.CLIENT_TYPES, + ContactFeature.PRESENCE, + ContactFeature.CONTACT_INFO, + ContactFeature.CONTACT_GROUPS + }); + this._account_manager.invalidated.connect ( this._account_manager_invalidated_cb);