]> git.0d.be Git - empathy.git/commitdiff
Add a comment to explain what does tp_contact_list_group_add
authorXavier Claessens <xclaesse@gmail.com>
Mon, 20 Apr 2009 23:04:48 +0000 (01:04 +0200)
committerXavier Claessens <xclaesse@gmail.com>
Wed, 22 Apr 2009 10:21:15 +0000 (12:21 +0200)
libempathy/empathy-tp-contact-list.c

index a4d91be1d0b378744a78d93bbb328ba0fe43abbe..f2c552c1b7c587a7dd323e875f7d884167bda487 100644 (file)
@@ -315,6 +315,7 @@ tp_contact_list_group_add (EmpathyTpContactList *list,
        const gchar              *names[] = {group_name, NULL};
        GroupAddData             *data;
 
+       /* Search the channel for that group name */
        channel = g_hash_table_lookup (priv->groups, group_name);
        if (channel) {
                tp_cli_channel_interface_group_call_add_members (channel, -1,
@@ -323,6 +324,10 @@ tp_contact_list_group_add (EmpathyTpContactList *list,
                return;
        }
 
+       /* That group does not exist yet, we have to:
+        * 1) Request an handle for the group name
+        * 2) Request a channel
+        * 3) Add handles in members of the new channel */
        data = g_slice_new0 (GroupAddData);
        data->handles = handles;
        data->ref_count = 1;