mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-09-01 15:15:13 +00:00
Use refs in AuthSession part getters.
Also use only AuthSession data for Contacts/Dialogs loaded state.
This commit is contained in:
@@ -61,7 +61,7 @@ OverviewInner::OverviewInner(OverviewWidget *overview, Ui::ScrollArea *scroll, P
|
||||
, _cancelSearch(this, st::dialogsCancelSearch)
|
||||
, _itemsToBeLoaded(LinksOverviewPerPage * 2)
|
||||
, _width(st::windowMinWidth) {
|
||||
subscribe(AuthSession::Current().downloader()->taskFinished(), [this] { update(); });
|
||||
subscribe(AuthSession::Current().downloader().taskFinished(), [this] { update(); });
|
||||
subscribe(Global::RefItemRemoved(), [this](HistoryItem *item) {
|
||||
itemRemoved(item);
|
||||
});
|
||||
@@ -1919,7 +1919,7 @@ void OverviewWidget::clear() {
|
||||
}
|
||||
|
||||
void OverviewWidget::onScroll() {
|
||||
AuthSession::Current().downloader()->clearPriorities();
|
||||
AuthSession::Current().downloader().clearPriorities();
|
||||
int32 preloadThreshold = _scroll->height() * 5;
|
||||
bool needToPreload = false;
|
||||
do {
|
||||
|
Reference in New Issue
Block a user