[empathy] tp_contact_list_remove: remove from the stored list if possible (#604181)
- From: Guillaume Desmottes <gdesmott src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [empathy] tp_contact_list_remove: remove from the stored list if possible (#604181)
- Date: Wed, 9 Dec 2009 16:27:50 +0000 (UTC)
commit 7b4335bd88919c0d377ee0f67f1158d4f6b7dc2d
Author: Guillaume Desmottes <guillaume desmottes collabora co uk>
Date: Wed Dec 9 15:53:51 2009 +0000
tp_contact_list_remove: remove from the stored list if possible (#604181)
libempathy/empathy-tp-contact-list.c | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/libempathy/empathy-tp-contact-list.c b/libempathy/empathy-tp-contact-list.c
index 917649c..9ef71b4 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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]