From fe8e29542c739035ac6d1b972beb3db81ad22392 Mon Sep 17 00:00:00 2001 From: QuentinArguillere Date: Tue, 25 May 2021 13:40:59 +0200 Subject: [PATCH] Remove displayIncomingCall(string) --- Classes/CallManager.swift | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/Classes/CallManager.swift b/Classes/CallManager.swift index 72c4889e9..7b23ba796 100644 --- a/Classes/CallManager.swift +++ b/Classes/CallManager.swift @@ -40,7 +40,6 @@ import AVFoundation var lc: Core? @objc var speakerBeforePause : Bool = false @objc var nextCallIsTransfer: Bool = false - @objc var alreadyRegisteredForNotification: Bool = false var referedFromCall: String? var referedToCall: String? var endCallkit: Bool = false @@ -196,23 +195,6 @@ import AVFoundation } } - // From ios13, display the callkit view when the notification is received. - @objc func displayIncomingCall(callId: String) { - let uuid = CallManager.instance().providerDelegate.uuids["\(callId)"] - if (uuid != nil) { - return - } - - let call = CallManager.instance().callByCallId(callId: callId) - if (call != nil) { - let displayName = FastAddressBook.displayName(for: call?.remoteAddress?.getCobject) ?? "Unknow" - let video = UIApplication.shared.applicationState == .active && (lc!.videoActivationPolicy?.automaticallyAccept ?? false) && (call!.remoteParams?.videoEnabled ?? false) - displayIncomingCall(call: call, handle: (call!.remoteAddress?.asStringUriOnly())!, hasVideo: video, callId: callId, displayName: displayName) - } else { - displayIncomingCall(call: nil, handle: "Calling", hasVideo: true, callId: callId, displayName: "Calling") - } - } - func displayIncomingCall(call:Call?, handle: String, hasVideo: Bool, callId: String, displayName:String) { let uuid = UUID() let callInfo = CallInfo.newIncomingCallInfo(callId: callId)