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

Fix finalizing media in non-active account.

This commit is contained in:
John Preston
2020-07-06 13:58:18 +04:00
parent 000a7ae28b
commit 2f5cb33bf2
15 changed files with 396 additions and 304 deletions

View File

@@ -16,6 +16,7 @@ class ApiWrap;
namespace Api {
class Updates;
class SendProgressManager;
} // namespace Api
namespace MTP {
@@ -87,6 +88,9 @@ public:
[[nodiscard]] Api::Updates &updates() const {
return *_updates;
}
[[nodiscard]] Api::SendProgressManager &sendProgressManager() const {
return *_sendProgressManager;
}
[[nodiscard]] Storage::DownloadManagerMtproto &downloader() const {
return *_downloader;
}
@@ -162,6 +166,7 @@ private:
const std::unique_ptr<SessionSettings> _settings;
const std::unique_ptr<ApiWrap> _api;
const std::unique_ptr<Api::Updates> _updates;
const std::unique_ptr<Api::SendProgressManager> _sendProgressManager;
const std::unique_ptr<Storage::DownloadManagerMtproto> _downloader;
const std::unique_ptr<Storage::Uploader> _uploader;
const std::unique_ptr<Storage::Facade> _storage;