]> git.0d.be Git - empathy.git/commitdiff
Add support for inviting to MUCs
authorDanielle Madeley <danielle.madeley@collabora.co.uk>
Wed, 16 Dec 2009 09:21:44 +0000 (20:21 +1100)
committerDanielle Madeley <danielle.madeley@collabora.co.uk>
Mon, 21 Dec 2009 09:55:02 +0000 (20:55 +1100)
src/empathy-chat-window.c

index 17662b115b0945e680cf3eee4aca5abc97056c13..bea85c648fc075bf7d7f0ba39f902322639e1661 100644 (file)
@@ -905,8 +905,13 @@ chat_window_invite_participant_activate_cb (GtkAction         *action,
                }
                else
                {
-                       /* FIXME: do something with MUC */
-                       g_warning ("Not implemented yet");
+                       TpHandle handle = empathy_contact_get_handle (contact);
+                       GArray handles = {(gchar *) &handle, 1};
+
+                       tp_cli_channel_interface_group_call_add_members (
+                                       channel, -1, &handles,
+                                       _("Inviting to this room"),
+                                       NULL, NULL, NULL, NULL);
                }
 
                g_object_unref (contact);