2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-09-01 15:15:13 +00:00

Preload next stories inside the media viewer.

This commit is contained in:
John Preston
2023-06-27 12:38:02 +04:00
parent d567282430
commit 010c666d23
7 changed files with 749 additions and 12 deletions

View File

@@ -366,6 +366,8 @@ InnerWidget::InnerWidget(
Data::StorySourcesList::NotHidden);
}, lifetime());
session().data().stories().incrementPreloadingMainSources();
handleChatListEntryRefreshes();
refreshWithCollapsedRows(true);
@@ -2426,6 +2428,7 @@ void InnerWidget::appendToFiltered(Key key) {
}
InnerWidget::~InnerWidget() {
session().data().stories().decrementPreloadingMainSources();
clearSearchResults();
}