2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +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) {