Reset CallKit UUID on invite resend

This commit is contained in:
Benoit Martins 2025-12-15 13:21:12 +01:00
parent 57b7b857bc
commit ed08190ff4
2 changed files with 8 additions and 2 deletions

View file

@ -1,7 +1,7 @@
import Foundation
public enum AppGitInfo {
public static let branch = "feature/mwi"
public static let commit = "742aa8025"
public static let branch = "master"
public static let commit = "57b7b857b"
public static let tag = "6.1.0-alpha"
}

View file

@ -433,6 +433,7 @@ class TelecomManager: ObservableObject {
func onCallStateChanged(core: Core, call: Call, state cstate: Call.State, message: String) {
let callLog = call.callLog
let callId = callLog?.callId ?? ""
if !callInProgress && participantsInvited {
if let remoteAddress = call.remoteAddress {
let uuid = UUID()
@ -621,6 +622,11 @@ class TelecomManager: ObservableObject {
Log.info("CallKit: outgoing call started connecting with uuid \(uuid!) and callId \(callId)")
providerDelegate.reportOutgoingCallStartedConnecting(uuid: uuid!)
} else if callId != "" && cstate == .OutgoingInit {
if let uuidTmp = providerDelegate.uuids["\(callId)"] {
providerDelegate.uuids.removeValue(forKey: callId)
providerDelegate.uuids.updateValue(uuidTmp, forKey: "")
}
} else {
referedToCall = callId
}