mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-18 23:27:09 +02:00
Stick to bottom on new messages.
This commit is contained in:
parent
50a0429786
commit
204645a715
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue