Files
Morgan Pretty 5fb481371b Fixed issues found during QA testing
• Tweaked some notification log details
• Fixed an issue where unread message request push notifications would incorrectly increment the app badge number
• Fixed an issue with the unread count was being miscalculated in some cases
• Fixed an issue where dedupe records and messages could be saved under incorrect paths
• Fixed an issue where conversation display pictures containing avatars would not correctly update when the users avatar was changed
• Fixed an issue where manually updating features wouldn't trigger observations
• Fixed an issue where the 'isTrusted' state wouldn't properly update all messages in a currently open conversation
• Fixed an issue where query logic for screens using the updated observation system was incorrectly running on the main thread
• Fixed a thread deadlock which could occur on launch
2025-07-22 15:00:11 +10:00

40 lines
1.4 KiB
Swift

// Copyright © 2022 Rangeproof Pty Ltd. All rights reserved.
import Foundation
import CallKit
import SessionUtilitiesKit
// MARK: - Singleton
public extension Singleton {
static let callManager: SingletonConfig<CallManagerProtocol> = Dependencies.create(
identifier: "sessionCallManager",
createInstance: { _ in NoopSessionCallManager() }
)
}
// MARK: - CallManagerProtocol
public protocol CallManagerProtocol {
var currentCall: CurrentCallProtocol? { get }
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
@MainActor func dismissAllCallUI()
func cleanUpPreviousCall()
}