diff options
author | Guillaume Desmottes <gdesmott@gnome.org> | 2009-02-13 18:25:45 +0800 |
---|---|---|
committer | Xavier Claessens <xclaesse@src.gnome.org> | 2009-02-13 18:25:45 +0800 |
commit | ed49fdb2d4477d63e850848f88f318325fd2dec6 (patch) | |
tree | f62a8a9cfc7e2c21f27a11c6ffe4520be5f36f1f /src | |
parent | fe2c2763a44033e5e6d772317cddd5e5b7ad0daf (diff) | |
download | gsoc2013-empathy-ed49fdb2d4477d63e850848f88f318325fd2dec6.tar gsoc2013-empathy-ed49fdb2d4477d63e850848f88f318325fd2dec6.tar.gz gsoc2013-empathy-ed49fdb2d4477d63e850848f88f318325fd2dec6.tar.bz2 gsoc2013-empathy-ed49fdb2d4477d63e850848f88f318325fd2dec6.tar.lz gsoc2013-empathy-ed49fdb2d4477d63e850848f88f318325fd2dec6.tar.xz gsoc2013-empathy-ed49fdb2d4477d63e850848f88f318325fd2dec6.tar.zst gsoc2013-empathy-ed49fdb2d4477d63e850848f88f318325fd2dec6.zip |
use tp_channel_get_identifier instead of inspecting room handle
From: Guillaume Desmottes <gdesmott@gnome.org>
svn path=/trunk/; revision=2447
Diffstat (limited to 'src')
-rw-r--r-- | src/empathy-event-manager.c | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/src/empathy-event-manager.c b/src/empathy-event-manager.c index c5cf76857..c463f693f 100644 --- a/src/empathy-event-manager.c +++ b/src/empathy-event-manager.c @@ -779,8 +779,6 @@ event_manager_approve_channel_cb (EmpathyDispatcher *dispatcher, EmpathyTpGroup *group; EmpathyPendingInfo *info; gchar *msg; - GArray *handles; - gchar **names; group = empathy_tp_group_new (channel); empathy_run_until_ready (group); @@ -799,14 +797,9 @@ event_manager_approve_channel_cb (EmpathyDispatcher *dispatcher, } /* We are invited to a room */ - handles = g_array_new (FALSE, FALSE, sizeof (guint)); - g_array_append_val (handles, handle); - tp_cli_connection_run_inspect_handles ( - tp_channel_borrow_connection (channel), -1, - TP_HANDLE_TYPE_ROOM, handles, &names, NULL, NULL); - msg = g_strdup_printf ("%s invited you to join %s", - empathy_contact_get_name (info->actor), *names); + empathy_contact_get_name (info->actor), + tp_channel_get_identifier (channel)); approval->contact = g_object_ref (info->actor); @@ -817,8 +810,6 @@ event_manager_approve_channel_cb (EmpathyDispatcher *dispatcher, empathy_sound_play (empathy_main_window_get (), EMPATHY_SOUND_CONVERSATION_NEW); - g_array_free (handles, TRUE); - g_free (names); g_object_unref (group); } } |