Stick to bottom on new messages.

This commit is contained in:
John Preston 2020-08-28 18:10:03 +04:00
parent 50a0429786
commit 204645a715

View file

@ -1562,7 +1562,7 @@ Element *ListWidget::strictFindItemByY(int y) const {
}
auto ListWidget::countScrollState() const -> ScrollTopState {
if (_items.empty()) {
if (_items.empty() || _visibleBottom == height()) {
return { Data::MessagePosition(), 0 };
}
auto topItem = findItemByY(_visibleTop);