mirror of
https://github.com/Qz3rK/tdesktop.git
synced 2026-07-03 14:15:08 +02:00
Stick to bottom on new messages.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user