From 7b4335bd88919c0d377ee0f67f1158d4f6b7dc2d Mon Sep 17 00:00:00 2001 From: Guillaume Desmottes Date: Wed, 9 Dec 2009 15:53:51 +0000 Subject: tp_contact_list_remove: remove from the stored list if possible (#604181) --- libempathy/empathy-tp-contact-list.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/libempathy/empathy-tp-contact-list.c b/libempathy/empathy-tp-contact-list.c index 917649c3f..9ef71b4f9 100644 --- a/libempathy/empathy-tp-contact-list.c +++ b/libempathy/empathy-tp-contact-list.c @@ -1059,6 +1059,14 @@ tp_contact_list_remove (EmpathyContactList *list, GArray handles = {(gchar *) &handle, 1}; handle = empathy_contact_get_handle (contact); + + if (priv->stored != NULL) { + tp_cli_channel_interface_group_call_remove_members (priv->stored, + -1, &handles, message, NULL, NULL, NULL, NULL); + /* Contact will be removed from 'publish' and 'subscribe' too */ + return; + } + if (priv->subscribe) { tp_cli_channel_interface_group_call_remove_members (priv->subscribe, -1, &handles, message, NULL, NULL, NULL, NULL); -- cgit v1.2.3