diff options
author | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2009-12-09 23:53:51 +0800 |
---|---|---|
committer | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2009-12-09 23:53:51 +0800 |
commit | 7b4335bd88919c0d377ee0f67f1158d4f6b7dc2d (patch) | |
tree | 8b7ce5b738f6417ab2ec9327ba909d03ed964b8d /libempathy | |
parent | 311cd30ad1aa251d029e37be4dd4ff96482d46db (diff) | |
download | gsoc2013-empathy-7b4335bd88919c0d377ee0f67f1158d4f6b7dc2d.tar gsoc2013-empathy-7b4335bd88919c0d377ee0f67f1158d4f6b7dc2d.tar.gz gsoc2013-empathy-7b4335bd88919c0d377ee0f67f1158d4f6b7dc2d.tar.bz2 gsoc2013-empathy-7b4335bd88919c0d377ee0f67f1158d4f6b7dc2d.tar.lz gsoc2013-empathy-7b4335bd88919c0d377ee0f67f1158d4f6b7dc2d.tar.xz gsoc2013-empathy-7b4335bd88919c0d377ee0f67f1158d4f6b7dc2d.tar.zst gsoc2013-empathy-7b4335bd88919c0d377ee0f67f1158d4f6b7dc2d.zip |
tp_contact_list_remove: remove from the stored list if possible (#604181)
Diffstat (limited to 'libempathy')
-rw-r--r-- | 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 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); |