]> git.0d.be Git - empathy.git/commitdiff
Adjust for signature change in folks_individual_aggregator_remove_individual()
authorTravis Reitter <treitter@gmail.com>
Mon, 26 Jul 2010 16:24:51 +0000 (18:24 +0200)
committerTravis Reitter <treitter@gmail.com>
Tue, 27 Jul 2010 10:51:15 +0000 (12:51 +0200)
libempathy/empathy-individual-manager.c

index e10b27c7d58aafd6834410e2cd67160c36dcba16..32442f94c3d4f88ffb6e47fad6c49a6929e582f1 100644 (file)
@@ -326,6 +326,23 @@ empathy_individual_manager_add_from_contact (EmpathyIndividualManager *self,
   g_hash_table_destroy (details);
 }
 
+static void
+aggregator_remove_individual_cb (GObject *source,
+    GAsyncResult *result,
+    gpointer user_data)
+{
+  FolksIndividualAggregator *aggregator = FOLKS_INDIVIDUAL_AGGREGATOR (source);
+  GError *error = NULL;
+
+  folks_individual_aggregator_remove_individual_finish (
+      aggregator, result, &error);
+  if (error != NULL)
+    {
+      g_warning ("failed to remove individual: %s", error->message);
+      g_clear_error (&error);
+    }
+}
+
 /**
  * Removes the inner contact from the server (and thus the Individual). Not
  * meant for de-shelling inner personas from an Individual.
@@ -346,7 +363,8 @@ empathy_individual_manager_remove (EmpathyIndividualManager *self,
       folks_individual_get_id (individual),
       folks_individual_get_alias (individual));
 
-  folks_individual_aggregator_remove_individual (priv->aggregator, individual);
+  folks_individual_aggregator_remove_individual (priv->aggregator, individual,
+      aggregator_remove_individual_cb, self);
 }
 
 static void