From 8d27b967fdad4a6ad04cf40724a89f4b450fa1c6 Mon Sep 17 00:00:00 2001 From: Xavier Claessens Date: Mon, 12 Jan 2009 21:51:23 +0000 Subject: Remove some usage of EmpathyTpGroup from EmpathyTpChat svn path=/trunk/; revision=2227 --- libempathy/empathy-tp-chat.c | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) (limited to 'libempathy/empathy-tp-chat.c') diff --git a/libempathy/empathy-tp-chat.c b/libempathy/empathy-tp-chat.c index 19a367e9e..d552db8da 100644 --- a/libempathy/empathy-tp-chat.c +++ b/libempathy/empathy-tp-chat.c @@ -228,13 +228,17 @@ tp_chat_add (EmpathyContactList *list, const gchar *message) { EmpathyTpChatPriv *priv = GET_PRIV (list); + TpHandle handle; + GArray handles = {(gchar *) &handle, 1}; g_return_if_fail (EMPATHY_IS_TP_CHAT (list)); g_return_if_fail (EMPATHY_IS_CONTACT (contact)); - if (priv->group) { - empathy_tp_group_add_member (priv->group, contact, message); - } + handle = empathy_contact_get_handle (contact); + tp_cli_channel_interface_group_call_add_members (priv->channel, -1, + &handles, NULL, + NULL, NULL, NULL, + NULL); } static void @@ -243,13 +247,17 @@ tp_chat_remove (EmpathyContactList *list, const gchar *message) { EmpathyTpChatPriv *priv = GET_PRIV (list); + TpHandle handle; + GArray handles = {(gchar *) &handle, 1}; g_return_if_fail (EMPATHY_IS_TP_CHAT (list)); g_return_if_fail (EMPATHY_IS_CONTACT (contact)); - if (priv->group) { - empathy_tp_group_remove_member (priv->group, contact, message); - } + handle = empathy_contact_get_handle (contact); + tp_cli_channel_interface_group_call_remove_members (priv->channel, -1, + &handles, NULL, + NULL, NULL, NULL, + NULL); } static GList * -- cgit v1.2.3