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

Use vector queues in mtproto file downloader.

This commit is contained in:
John Preston
2019-12-02 10:28:33 +03:00
parent 524d64a462
commit 12f5ccaaa5
9 changed files with 252 additions and 272 deletions

View File

@@ -2464,7 +2464,6 @@ void InnerWidget::loadPeerPhotos() {
auto yFrom = _visibleTop;
auto yTo = _visibleTop + (_visibleBottom - _visibleTop) * (PreloadHeightsCount + 1);
session().downloader().clearPriorities();
if (_state == WidgetState::Default) {
auto otherStart = shownDialogs()->size() * st::dialogsRowHeight;
if (yFrom < otherStart) {