fix merging dev in

pull/1061/head
Ryan ZHAO 1 month ago
parent de1d086a43
commit 1c0d00fe46

@ -309,17 +309,13 @@ public final class SessionCall: CurrentCallProtocol, WebRTCSessionDelegate {
let sessionId: String = self.sessionId
webRTCSession.hangUp()
Storage.shared.writeAsync { [weak self] db in
try self?.webRTCSession.endCall(db, with: sessionId)
}
webRTCSession.endCall(with: sessionId).sinkUntilComplete()
hasEnded = true
}
func handleCallInitializationFailed() {
self.endSessionCall()
Singleton.callManager.reportCurrentCallEnded(reason: nil)
Singleton.callManager.reportCurrentCallEnded(reason: .failed)
}
// MARK: - Call Message Handling

Loading…
Cancel
Save