aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy
diff options
context:
space:
mode:
authorTravis Reitter <treitter@gmail.com>2010-06-24 11:12:42 +0800
committerTravis Reitter <treitter@gmail.com>2010-07-21 07:12:35 +0800
commite54fe4814b321be3e32e99f7dfd49b93e392bded (patch)
tree8b6adc8ad37feb56510ec780c43f0a55c4424aec /libempathy
parentae79986102a22b65a3f9f4eb2328971272eec204 (diff)
downloadgsoc2013-empathy-e54fe4814b321be3e32e99f7dfd49b93e392bded.tar
gsoc2013-empathy-e54fe4814b321be3e32e99f7dfd49b93e392bded.tar.gz
gsoc2013-empathy-e54fe4814b321be3e32e99f7dfd49b93e392bded.tar.bz2
gsoc2013-empathy-e54fe4814b321be3e32e99f7dfd49b93e392bded.tar.lz
gsoc2013-empathy-e54fe4814b321be3e32e99f7dfd49b93e392bded.tar.xz
gsoc2013-empathy-e54fe4814b321be3e32e99f7dfd49b93e392bded.tar.zst
gsoc2013-empathy-e54fe4814b321be3e32e99f7dfd49b93e392bded.zip
Support contact removal
Diffstat (limited to 'libempathy')
-rw-r--r--libempathy/empathy-individual-manager.c18
1 files changed, 16 insertions, 2 deletions
diff --git a/libempathy/empathy-individual-manager.c b/libempathy/empathy-individual-manager.c
index fe8ccadf9..53843ce93 100644
--- a/libempathy/empathy-individual-manager.c
+++ b/libempathy/empathy-individual-manager.c
@@ -310,13 +310,27 @@ empathy_individual_manager_add_from_contact (EmpathyIndividualManager *self,
g_hash_table_destroy (details);
}
+/**
+ * Removes the inner contact from the server (and thus the Individual). Not
+ * meant for de-shelling inner personas from an Individual.
+ */
void
empathy_individual_manager_remove (EmpathyIndividualManager *self,
FolksIndividual *individual,
const gchar *message)
{
- /* TODO: implement */
- DEBUG (G_STRLOC ": individual removal not implemented");
+ EmpathyIndividualManagerPriv *priv;
+
+ g_return_if_fail (EMPATHY_IS_INDIVIDUAL_MANAGER (self));
+ g_return_if_fail (FOLKS_IS_INDIVIDUAL (individual));
+
+ priv = GET_PRIV (self);
+
+ DEBUG (G_STRLOC ": removing individual %s (%s)",
+ folks_individual_get_id (individual),
+ folks_individual_get_alias (individual));
+
+ folks_individual_aggregator_remove_individual (priv->aggregator, individual);
}
EmpathyIndividualManagerFlags