mirror of
https://github.com/lux-tel/session-ios.git
synced 2026-10-30 20:38:32 +00:00
• Added a mechanism to wait for a dependency to be set • Added a warning log when a dependency gets set to a no-op instance • Fixed an issue where the 'NotificationsManager' delegate wouldn't be set on initial launch • Fixed an issue where we wouldn't check the local network permission on launch because the libSession cache wouldn't have been initialised yet
29 lines
1.2 KiB
Swift
29 lines
1.2 KiB
Swift
// Copyright © 2024 Rangeproof Pty Ltd. All rights reserved.
|
|
|
|
import Foundation
|
|
import CallKit
|
|
import SessionUtilitiesKit
|
|
|
|
internal struct NoopSessionCallManager: CallManagerProtocol, NoopDependency {
|
|
var currentCall: CurrentCallProtocol?
|
|
|
|
func setCurrentCall(_ call: CurrentCallProtocol?) {}
|
|
func reportFakeCall(info: String) {}
|
|
func reportIncomingCall(_ call: CurrentCallProtocol, callerName: String, completion: @escaping (Error?) -> Void) {}
|
|
func reportCurrentCallEnded(reason: CXCallEndedReason) {}
|
|
func suspendDatabaseIfCallEndedInBackground() {}
|
|
|
|
func startCall(_ call: CurrentCallProtocol?, completion: ((Error?) -> Void)?) {}
|
|
func answerCall(_ call: CurrentCallProtocol?, completion: ((Error?) -> Void)?) {}
|
|
func endCall(_ call: CurrentCallProtocol?, completion: ((Error?) -> Void)?) {}
|
|
|
|
func showCallUIForCall(caller: String, uuid: String, mode: CallMode, interactionId: Int64?) {}
|
|
func handleICECandidates(message: CallMessage, sdpMLineIndexes: [UInt32], sdpMids: [String]) {}
|
|
@MainActor func handleAnswerMessage(_ message: CallMessage) {}
|
|
|
|
func currentWebRTCSessionMatches(callId: String) -> Bool { return false }
|
|
|
|
@MainActor func dismissAllCallUI() {}
|
|
func cleanUpPreviousCall() {}
|
|
}
|