]> git.0d.be Git - empathy.git/commitdiff
tp_contact_list_remove: remove from the stored list if possible (#604181)
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Wed, 9 Dec 2009 15:53:51 +0000 (15:53 +0000)
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Wed, 9 Dec 2009 15:53:51 +0000 (15:53 +0000)
libempathy/empathy-tp-contact-list.c

index 917649c3f4dba5fccdee5fa57f1b088d560db41f..9ef71b4f9b9e4a165b20bfb7441b1d9760109e59 100644 (file)
@@ -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);