Disable camera button when connecting

This commit is contained in:
Isaac 2024-09-24 21:29:01 +08:00
parent 860f543fb0
commit 99fd201507

View File

@ -481,6 +481,15 @@ final class VideoChatScreenComponent: Component {
guard let component = self.component, let environment = self.environment else {
return
}
guard let callState = self.callState else {
return
}
if case .connecting = callState.networkState {
return
}
if let muteState = callState.muteState, !muteState.canUnmute {
return
}
HapticFeedback().impact(.light)
if component.call.hasVideo {