2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 14:45:14 +00:00

Correctly track DC index in Downloader-s.

This commit is contained in:
John Preston
2019-12-03 15:45:35 +03:00
parent 8535a579ca
commit fb86bb579b
6 changed files with 123 additions and 129 deletions

View File

@@ -29,7 +29,7 @@ class Session;
} // namespace Data
namespace Storage {
class Downloader;
class DownloadManager;
class Uploader;
class Facade;
} // namespace Storage
@@ -80,7 +80,7 @@ public:
}
bool validateSelf(const MTPUser &user);
[[nodiscard]] Storage::Downloader &downloader() {
[[nodiscard]] Storage::DownloadManager &downloader() {
return *_downloader;
}
[[nodiscard]] Storage::Uploader &uploader() {
@@ -145,7 +145,7 @@ private:
const std::unique_ptr<ApiWrap> _api;
const std::unique_ptr<Calls::Instance> _calls;
const std::unique_ptr<Storage::Downloader> _downloader;
const std::unique_ptr<Storage::DownloadManager> _downloader;
const std::unique_ptr<Storage::Uploader> _uploader;
const std::unique_ptr<Storage::Facade> _storage;
const std::unique_ptr<Window::Notifications::System> _notifications;