Hide history navigation buttons when recording

This commit is contained in:
Ali 2020-06-30 10:17:04 +04:00
parent 3e6acb4abe
commit 91a4a328ff

View File

@ -1865,6 +1865,12 @@ class ChatControllerNode: ASDisplayNode, UIScrollViewDelegate {
self.emptyNode?.isHidden = false self.emptyNode?.isHidden = false
} }
var showNavigateButtons = true
if let _ = chatPresentationInterfaceState.inputTextPanelState.mediaRecordingState {
showNavigateButtons = false
}
transition.updateAlpha(node: self.navigateButtons, alpha: showNavigateButtons ? 1.0 : 0.0)
if let openStickersDisposable = self.openStickersDisposable { if let openStickersDisposable = self.openStickersDisposable {
if case .media = chatPresentationInterfaceState.inputMode { if case .media = chatPresentationInterfaceState.inputMode {
} else { } else {