2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +00:00

Register streaming loaders in Storage::Downloader.

This commit is contained in:
John Preston
2019-04-12 14:50:41 +04:00
parent cca906d383
commit b2895a39ed
11 changed files with 158 additions and 98 deletions

View File

@@ -1240,7 +1240,7 @@ auto DocumentData::createStreamingLoader(
}
return hasRemoteLocation()
? std::make_unique<Media::Streaming::LoaderMtproto>(
&session().api(),
&session().downloader(),
StorageFileLocation(
_dc,
session().userId(),