mirror of
https://github.com/TelegramMessenger/Telegram-iOS.git
synced 2026-07-06 03:33:41 +02:00
Disable camera button when connecting
This commit is contained in:
parent
860f543fb0
commit
99fd201507
1 changed files with 9 additions and 0 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue