aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libempathy/empathy-individual-manager.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/libempathy/empathy-individual-manager.c b/libempathy/empathy-individual-manager.c
index de0add457..61f61f96d 100644
--- a/libempathy/empathy-individual-manager.c
+++ b/libempathy/empathy-individual-manager.c
@@ -293,7 +293,6 @@ empathy_individual_manager_add_from_contact (EmpathyIndividualManager *self,
EmpathyIndividualManagerPriv *priv;
GHashTable* details;
TpAccount *account;
- GValue value = {0};
const gchar *store_id;
g_return_if_fail (EMPATHY_IS_INDIVIDUAL_MANAGER (self));
@@ -311,10 +310,9 @@ empathy_individual_manager_add_from_contact (EmpathyIndividualManager *self,
account = empathy_contact_get_account (contact);
store_id = tp_proxy_get_object_path (TP_PROXY (account));
- details = g_hash_table_new (g_str_hash, g_str_equal);
- g_value_init (&value, G_TYPE_STRING);
- g_value_set_string (&value, empathy_contact_get_id (contact));
- g_hash_table_insert (details, "contact", &value);
+ details = tp_asv_new (
+ "contact", G_TYPE_STRING, empathy_contact_get_id (contact),
+ NULL);
folks_individual_aggregator_add_persona_from_details (
priv->aggregator, NULL, "telepathy", store_id, details,