Conference

This commit is contained in:
Isaac
2025-04-11 17:16:36 +04:00
parent 22b4c30774
commit dcde323740
9 changed files with 35 additions and 12 deletions

View File

@@ -2706,6 +2706,15 @@ final class VideoChatScreenComponent: Component {
} else if let expandedParticipantsVideoState = self.expandedParticipantsVideoState, !expandedParticipantsVideoState.isUIHidden {
displayVideoControlButton = false
}
if case .audio = videoControlButtonContent {
if let (availableOutputs, _) = self.audioOutputState {
if availableOutputs.count <= 0 {
displayVideoControlButton = false
}
} else {
displayVideoControlButton = false
}
}
let videoControlButtonSize = self.videoControlButton.update(
transition: transition,