mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-16 14:17:12 +02:00
Restore scroll to collapsed stories in chats list.
This commit is contained in:
parent
a73490e5ad
commit
b46659eb22
1 changed files with 2 additions and 1 deletions
|
@ -3342,7 +3342,8 @@ void InnerWidget::saveChatsFilterScrollState(FilterId filterId) {
|
|||
void InnerWidget::restoreChatsFilterScrollState(FilterId filterId) {
|
||||
const auto it = _chatsFilterScrollStates.find(filterId);
|
||||
if (it != end(_chatsFilterScrollStates)) {
|
||||
_mustScrollTo.fire({ it->second, -1 });
|
||||
const auto top = std::max(it->second, defaultScrollTop());
|
||||
_mustScrollTo.fire({ top, -1 });
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue