Fix crash toggling video when call is not in streams running state

This commit is contained in:
Christophe Deschamps 2024-11-14 11:38:03 +01:00
parent 25dd82a4da
commit 3a6ba3fa40

View file

@ -156,7 +156,7 @@ class ControlsViewModel {
}
} else {
let state = currentCall.state
if (state == Call.State.End || state == Call.State.Released || state == Call.State.Error || state == .PushIncomingReceived) {
if (state != .StreamsRunning) {
return
}
isVideoUpdateInProgress.value = true