diff options
author | Xavier Claessens <xclaesse@gmail.com> | 2009-04-21 07:04:48 +0800 |
---|---|---|
committer | Xavier Claessens <xclaesse@gmail.com> | 2009-04-22 18:21:15 +0800 |
commit | ce64e9fc90ebbca2a9f36cb55cd0c837f1da2e27 (patch) | |
tree | c4a01e42ecf94b1c28087341dddea18f81060fa5 /libempathy | |
parent | 485f7783cb398f8b29b6cc597d5a089a2c4f749f (diff) | |
download | gsoc2013-empathy-ce64e9fc90ebbca2a9f36cb55cd0c837f1da2e27.tar gsoc2013-empathy-ce64e9fc90ebbca2a9f36cb55cd0c837f1da2e27.tar.gz gsoc2013-empathy-ce64e9fc90ebbca2a9f36cb55cd0c837f1da2e27.tar.bz2 gsoc2013-empathy-ce64e9fc90ebbca2a9f36cb55cd0c837f1da2e27.tar.lz gsoc2013-empathy-ce64e9fc90ebbca2a9f36cb55cd0c837f1da2e27.tar.xz gsoc2013-empathy-ce64e9fc90ebbca2a9f36cb55cd0c837f1da2e27.tar.zst gsoc2013-empathy-ce64e9fc90ebbca2a9f36cb55cd0c837f1da2e27.zip |
Add a comment to explain what does tp_contact_list_group_add
Diffstat (limited to 'libempathy')
-rw-r--r-- | libempathy/empathy-tp-contact-list.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libempathy/empathy-tp-contact-list.c b/libempathy/empathy-tp-contact-list.c index a4d91be1d..f2c552c1b 100644 --- a/libempathy/empathy-tp-contact-list.c +++ b/libempathy/empathy-tp-contact-list.c @@ -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; |