Various fixes

This commit is contained in:
Ilya Laktyushin
2022-08-16 15:03:27 +03:00
parent 4982c780a2
commit 8f9f7185af
7 changed files with 32 additions and 9 deletions

View File

@@ -1482,7 +1482,7 @@ class ChatControllerNode: ASDisplayNode, UIScrollViewDelegate {
let inputBackgroundInset: CGFloat
if cleanInsets.bottom < insets.bottom {
if case .regular = layout.metrics.widthClass, let inputHeight = layout.inputHeight, inputHeight < 88.0 {
if case .regular = layout.metrics.widthClass, insets.bottom < 88.0 {
inputBackgroundInset = insets.bottom
} else {
inputBackgroundInset = 0.0