From 06557fa3a3dcdaaa09cd0e7fa19c06d01544e5e0 Mon Sep 17 00:00:00 2001 From: Benoit Martins Date: Wed, 10 Jul 2024 12:25:58 +0200 Subject: [PATCH] Fix display of incoming call type (Audio or Video) --- Linphone/TelecomManager/TelecomManager.swift | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Linphone/TelecomManager/TelecomManager.swift b/Linphone/TelecomManager/TelecomManager.swift index fdf00c209..7ddcf79fe 100644 --- a/Linphone/TelecomManager/TelecomManager.swift +++ b/Linphone/TelecomManager/TelecomManager.swift @@ -605,7 +605,8 @@ class TelecomManager: ObservableObject { } else { 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) + let videoDir = call.remoteParams?.videoDirection != MediaDirection.Inactive + self.displayIncomingCall(call: call, handle: addr!.asStringUriOnly(), hasVideo: videoEnabled && videoDir && !isConference, callId: callId, displayName: displayName) } } /* else if UIApplication.shared.applicationState != .active { // not support callkit , use notif