Fix crash if activating video but call is not established yet

This commit is contained in:
Christophe Deschamps 2024-10-14 12:33:53 +02:00
parent 7ce40f5b4d
commit 9715c98da1

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) {
if (state == Call.State.End || state == Call.State.Released || state == Call.State.Error || state == .PushIncomingReceived) {
return
}
isVideoUpdateInProgress.value = true