From 736059f699ebc56f0e2739e03daf8089a3c75d1c Mon Sep 17 00:00:00 2001 From: Christophe Deschamps Date: Tue, 15 Nov 2022 07:35:11 +0100 Subject: [PATCH] Fix compilation --- Classes/Swift/ProviderDelegate.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Classes/Swift/ProviderDelegate.swift b/Classes/Swift/ProviderDelegate.swift index 22600fa45..38692b7ee 100644 --- a/Classes/Swift/ProviderDelegate.swift +++ b/Classes/Swift/ProviderDelegate.swift @@ -192,8 +192,8 @@ extension ProviderDelegate: CXProviderDelegate { if (UIApplication.shared.applicationState != .active) { CallManager.instance().backgroundContextCall = call - CallManager.instance().backgroundContextCameraIsEnabled = call.params?.videoEnabled == true || call.callLog?.wasConference() == true - call.cameraEnabled = false // Disable camera while app is not on foreground + CallManager.instance().backgroundContextCameraIsEnabled = call?.params?.videoEnabled == true || call?.callLog?.wasConference() == true + call?.cameraEnabled = false // Disable camera while app is not on foreground } CallManager.instance().callkitAudioSessionActivated = false CallManager.instance().lc?.configureAudioSession()