Hide remote video view in 1-1 call when it is paused by remote

This commit is contained in:
Christophe Deschamps 2022-11-15 18:10:56 +01:00
parent 5fb42ce09f
commit 490f9e96db

View file

@ -217,7 +217,7 @@ class ControlsViewModel {
func isVideoCallOrConferenceActive() -> Bool {
if let currentCall = core.currentCall, let params = currentCall.params {
return params.videoEnabled && (currentCall.conference == nil || params.videoDirection == MediaDirection.SendRecv)
return currentCall.state != .PausedByRemote && params.videoEnabled && (currentCall.conference == nil || params.videoDirection == MediaDirection.SendRecv)
} else {
return false
}