From cef2e693eaf0e571fd273a28e8b208c210e70f87 Mon Sep 17 00:00:00 2001 From: Benoit Martins Date: Mon, 1 Jul 2024 16:19:00 +0200 Subject: [PATCH] Linphone Video displayed in Callkit notification when a video call is received --- Linphone/TelecomManager/TelecomManager.swift | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Linphone/TelecomManager/TelecomManager.swift b/Linphone/TelecomManager/TelecomManager.swift index 59f282a6d..ce2af3f1f 100644 --- a/Linphone/TelecomManager/TelecomManager.swift +++ b/Linphone/TelecomManager/TelecomManager.swift @@ -587,7 +587,9 @@ class TelecomManager: ObservableObject { // Tha app is now registered, updated the call already existed. self.providerDelegate.updateCall(uuid: uuid!, handle: addr!.asStringUriOnly(), hasVideo: self.remoteConfVideo, displayName: displayName) } else { - self.displayIncomingCall(call: call, handle: addr!.asStringUriOnly(), hasVideo: self.remoteConfVideo, callId: callId, displayName: displayName) + let videoEnabled = call.remoteParams?.videoEnabled ?? false + let isConference = call.callLog?.wasConference() ?? false + self.displayIncomingCall(call: call, handle: addr!.asStringUriOnly(), hasVideo: videoEnabled && !isConference, callId: callId, displayName: displayName) } } /* else if UIApplication.shared.applicationState != .active { // not support callkit , use notif