Enable camera on conference calls when app comes to foreground

This commit is contained in:
Christophe Deschamps 2022-11-14 21:18:44 +01:00
parent 8b5668e8ce
commit 0fc1f024d3

View file

@ -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) {