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

Working code for streaming downloader.

This commit is contained in:
John Preston
2019-04-12 11:34:39 +04:00
parent 27018d94ee
commit e1114530ab
8 changed files with 132 additions and 80 deletions

View File

@@ -871,9 +871,8 @@ void DocumentData::save(
id,
_dc,
origin,
(saveToCache()
? std::make_optional(Data::DocumentCacheKey(_dc, id))
: std::nullopt),
Data::DocumentCacheKey(_dc, id),
mediaKey(),
std::move(reader),
toFile,
size,