Voice Chat UI improvements

This commit is contained in:
Ilya Laktyushin
2020-12-04 20:30:51 +04:00
parent 4c27869b04
commit e0aacc155c
7 changed files with 66 additions and 11 deletions

View File

@@ -1426,11 +1426,16 @@ open class ListView: ASDisplayNode, UIScrollViewAccessibilityDelegate, UIGesture
}
if self.stackFromBottom {
let previousCompleteHeight = completeHeight
let updatedCompleteHeight = max(completeHeight, self.visibleSize.height)
let deltaCompleteHeight = updatedCompleteHeight - completeHeight
topItemEdge -= deltaCompleteHeight
bottomItemEdge -= deltaCompleteHeight
completeHeight = updatedCompleteHeight
if let _ = self.keepMinimalScrollHeightWithTopInset {
completeHeight += effectiveInsets.top + previousCompleteHeight
}
}
}
}