Files
Morgan Pretty 8dc7be1c2b Fixed a few bugs found when testing
• 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
2025-08-12 12:35:18 +10:00

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() {}
}