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

Save streaming player between message edits.

This commit is contained in:
John Preston
2019-12-28 17:56:06 +03:00
parent a980fba3aa
commit d47c138f23
9 changed files with 226 additions and 112 deletions

View File

@@ -8,6 +8,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
#include "data/data_document.h"
#include "data/data_session.h"
#include "data/data_streaming.h"
#include "data/data_document_good_thumbnail.h"
#include "lang/lang_keys.h"
#include "inline_bots/inline_bot_layout_item.h"
@@ -931,7 +932,7 @@ void DocumentData::save(
}
} else {
status = FileReady;
auto reader = owner().documentStreamedReader(this, origin, true);
auto reader = owner().streaming().sharedReader(this, origin, true);
if (reader) {
_loader = std::make_unique<Storage::StreamedFileDownloader>(
id,