From 0fc1f024d3eaba633b2f466fab334b8803d03aee Mon Sep 17 00:00:00 2001 From: Christophe Deschamps Date: Mon, 14 Nov 2022 21:18:44 +0100 Subject: [PATCH] Enable camera on conference calls when app comes to foreground --- Classes/LinphoneAppDelegate.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Classes/LinphoneAppDelegate.m b/Classes/LinphoneAppDelegate.m index 62406a221..604494483 100644 --- a/Classes/LinphoneAppDelegate.m +++ b/Classes/LinphoneAppDelegate.m @@ -131,7 +131,7 @@ const LinphoneCallParams *params = linphone_call_get_current_params(call); if (linphone_call_params_video_enabled(params)) { - linphone_call_enable_camera(call, [CallManager.instance backgroundContextCameraIsEnabled]); + linphone_call_enable_camera(call, [CallManager.instance backgroundContextCameraIsEnabled] || (linphone_call_get_call_log(call) && linphone_call_log_was_conference(linphone_call_get_call_log(call)))); } [CallManager.instance setBackgroundContextCallWithCall:nil]; } else if (linphone_call_get_state(call) == LinphoneCallIncomingReceived) {