X-Git-Url: https://git.0d.be/?p=empathy.git;a=blobdiff_plain;f=src%2Fempathy-event-manager.c;h=2ab139836f2d9eb2f6643e7e66da8963b8ebbcb5;hp=c463f693f3edd86e347df7143c187e4a903dcb9b;hb=0b2b9b93ae9dabd88b8d41613561311786ce5bdd;hpb=ed49fdb2d4477d63e850848f88f318325fd2dec6 diff --git a/src/empathy-event-manager.c b/src/empathy-event-manager.c index c463f693..2ab13983 100644 --- a/src/empathy-event-manager.c +++ b/src/empathy-event-manager.c @@ -680,9 +680,6 @@ static void event_room_channel_process_func (EventPriv *event) { GtkWidget *dialog, *button, *image; - TpHandle room_handle; - GArray *handles; - gchar **names; TpChannel *channel = empathy_dispatch_operation_get_channel ( event->approval->operation); @@ -692,16 +689,6 @@ event_room_channel_process_func (EventPriv *event) return; } - /* get room name */ - room_handle = tp_channel_get_handle (channel, NULL); - - handles = g_array_new (FALSE, FALSE, sizeof (guint)); - g_array_append_val (handles, room_handle); - - tp_cli_connection_run_inspect_handles ( - tp_channel_borrow_connection (channel), -1, - TP_HANDLE_TYPE_ROOM, handles, &names, NULL, NULL); - /* create dialog */ dialog = gtk_message_dialog_new (NULL, 0, GTK_MESSAGE_QUESTION, GTK_BUTTONS_NONE, _("Room invitation")); @@ -709,7 +696,7 @@ event_room_channel_process_func (EventPriv *event) gtk_message_dialog_format_secondary_text (GTK_MESSAGE_DIALOG (dialog), _("%s is inviting you to join %s"), empathy_contact_get_name (event->approval->contact), - *names); + tp_channel_get_identifier (channel)); gtk_dialog_set_default_response (GTK_DIALOG (dialog), GTK_RESPONSE_OK); @@ -729,9 +716,6 @@ event_room_channel_process_func (EventPriv *event) gtk_widget_show (dialog); - g_array_free (handles, TRUE); - g_free (names); - event->approval->dialog = dialog; }