diff options
author | Xavier Claessens <xclaesse@src.gnome.org> | 2009-01-13 05:51:23 +0800 |
---|---|---|
committer | Xavier Claessens <xclaesse@src.gnome.org> | 2009-01-13 05:51:23 +0800 |
commit | 8d27b967fdad4a6ad04cf40724a89f4b450fa1c6 (patch) | |
tree | 8114586d4c004c30a9669c0cf8897128fba7ecc5 /libempathy/empathy-tp-chat.c | |
parent | 349f9e961602f67960ff6a0ad295a1e40c46a747 (diff) | |
download | gsoc2013-empathy-8d27b967fdad4a6ad04cf40724a89f4b450fa1c6.tar gsoc2013-empathy-8d27b967fdad4a6ad04cf40724a89f4b450fa1c6.tar.gz gsoc2013-empathy-8d27b967fdad4a6ad04cf40724a89f4b450fa1c6.tar.bz2 gsoc2013-empathy-8d27b967fdad4a6ad04cf40724a89f4b450fa1c6.tar.lz gsoc2013-empathy-8d27b967fdad4a6ad04cf40724a89f4b450fa1c6.tar.xz gsoc2013-empathy-8d27b967fdad4a6ad04cf40724a89f4b450fa1c6.tar.zst gsoc2013-empathy-8d27b967fdad4a6ad04cf40724a89f4b450fa1c6.zip |
Remove some usage of EmpathyTpGroup from EmpathyTpChat
svn path=/trunk/; revision=2227
Diffstat (limited to 'libempathy/empathy-tp-chat.c')
-rw-r--r-- | libempathy/empathy-tp-chat.c | 20 |
1 files changed, 14 insertions, 6 deletions
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 * |