Channel navigation improvements

This commit is contained in:
Ali
2021-08-29 19:10:33 +04:00
parent 235934ae8a
commit 03c0477d21
4 changed files with 44 additions and 19 deletions

View File

@@ -2585,6 +2585,12 @@ class ChatControllerNode: ASDisplayNode, UIScrollViewDelegate {
}
var shouldAllowOverscrollActions: Bool {
if let inputHeight = self.validLayout?.0.inputHeight, inputHeight > 0.0 {
return false
}
if self.chatPresentationInterfaceState.inputTextPanelState.mediaRecordingState != nil {
return false
}
if let inputPanelNode = self.inputPanelNode as? ChatTextInputPanelNode {
if inputPanelNode.isFocused {
return false