From 41c88d2a8b3670901473061dd53eb83e6f7ad34c Mon Sep 17 00:00:00 2001 From: Guillaume Desmottes Date: Wed, 18 Aug 2010 15:20:56 +0200 Subject: Display invite dialog even if we don't know the inviter (#627228) --- src/empathy-event-manager.c | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) (limited to 'src/empathy-event-manager.c') diff --git a/src/empathy-event-manager.c b/src/empathy-event-manager.c index 5f2fdfae1..fdd0672ee 100644 --- a/src/empathy-event-manager.c +++ b/src/empathy-event-manager.c @@ -771,12 +771,12 @@ event_manager_muc_invite_got_contact_cb (TpConnection *connection, if (error != NULL) { - /* FIXME: We should probably still display the event */ DEBUG ("Error: %s", error->message); - return; } - - approval->contact = g_object_ref (contact); + else + { + approval->contact = g_object_ref (contact); + } display_invite_room_dialog (approval); } @@ -890,9 +890,16 @@ approve_channels (TpSimpleApprover *approver, DEBUG ("Have been invited to %s. Ask user if he wants to accept", tp_channel_get_identifier (channel)); - empathy_tp_contact_factory_get_from_handle (connection, - inviter, event_manager_muc_invite_got_contact_cb, - approval, NULL, G_OBJECT (self)); + if (inviter != 0) + { + empathy_tp_contact_factory_get_from_handle (connection, + inviter, event_manager_muc_invite_got_contact_cb, + approval, NULL, G_OBJECT (self)); + } + else + { + display_invite_room_dialog (approval); + } goto out; } -- cgit v1.2.3