[empathy: 6/17] Add support for inviting to MUCs



commit 041b5b174f64ddde0f400843ed2a8b89b52ba18d
Author: Danielle Madeley <danielle madeley collabora co uk>
Date:   Wed Dec 16 20:21:44 2009 +1100

    Add support for inviting to MUCs

 src/empathy-chat-window.c |    9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)
---
diff --git a/src/empathy-chat-window.c b/src/empathy-chat-window.c
index 17662b1..bea85c6 100644
--- a/src/empathy-chat-window.c
+++ b/src/empathy-chat-window.c
@@ -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);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]