mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-06-16 05:55:20 +00:00
Disable camera button when connecting
This commit is contained in:
parent
860f543fb0
commit
99fd201507
@ -481,6 +481,15 @@ final class VideoChatScreenComponent: Component {
|
|||||||
guard let component = self.component, let environment = self.environment else {
|
guard let component = self.component, let environment = self.environment else {
|
||||||
return
|
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)
|
HapticFeedback().impact(.light)
|
||||||
if component.call.hasVideo {
|
if component.call.hasVideo {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user