Fix remote Conf Video crash

This commit is contained in:
Benoit Martins 2024-06-04 14:25:30 +02:00
parent b3fa81b537
commit bd9e4a000f

View file

@ -443,9 +443,11 @@ class TelecomManager: ObservableObject {
} else {
DispatchQueue.main.async {
self.remoteConfVideo = false
let remoteConfVideoTmp = call.currentParams!.videoEnabled && call.currentParams!.videoDirection == .SendRecv || call.currentParams!.videoDirection == .RecvOnly
DispatchQueue.main.asyncAfter(deadline: .now() + 0.5) {
self.remoteConfVideo = remoteConfVideoTmp
if call.currentParams != nil {
let remoteConfVideoTmp = call.currentParams!.videoEnabled && call.currentParams!.videoDirection == .SendRecv || call.currentParams!.videoDirection == .RecvOnly
DispatchQueue.main.asyncAfter(deadline: .now() + 0.5) {
self.remoteConfVideo = remoteConfVideoTmp
}
}
}
}