Use StorageFileLocation in streaming loader.

This commit is contained in:
John Preston
2019-03-25 13:17:47 +04:00
parent 3f49796c43
commit 95023ca770
6 changed files with 86 additions and 89 deletions
+8 -6
View File
@@ -1195,12 +1195,14 @@ auto DocumentData::createStreamingLoader(Data::FileOrigin origin) const
return hasRemoteLocation()
? std::make_unique<Media::Streaming::LoaderMtproto>(
&session().api(),
_dc,
MTP_inputDocumentFileLocation(
MTP_long(id),
MTP_long(_access),
MTP_bytes(_fileReference),
MTP_string(QString())),
StorageFileLocation(
_dc,
session().userId(),
MTP_inputDocumentFileLocation(
MTP_long(id),
MTP_long(_access),
MTP_bytes(_fileReference),
MTP_string(QString()))),
size,
origin)
: nullptr;