mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 06:26:18 +00:00
Revert "Remove SendMediaReady legacy helper."
This reverts commit 91f8989f70
.
This commit is contained in:
@@ -1581,10 +1581,14 @@ void FormController::uploadEncryptedFile(
|
||||
&session(),
|
||||
std::make_unique<UploadScanData>(std::move(data)));
|
||||
|
||||
auto prepared = MakePreparedFile({
|
||||
.id = file.uploadData->fileId,
|
||||
.type = SendMediaType::Secure,
|
||||
});
|
||||
auto prepared = std::make_shared<FileLoadResult>(
|
||||
TaskId(),
|
||||
file.uploadData->fileId,
|
||||
FileLoadTo(PeerId(), Api::SendOptions(), FullReplyTo(), MsgId()),
|
||||
TextWithTags(),
|
||||
false,
|
||||
std::shared_ptr<SendingAlbum>(nullptr));
|
||||
prepared->type = SendMediaType::Secure;
|
||||
prepared->content = QByteArray::fromRawData(
|
||||
reinterpret_cast<char*>(file.uploadData->bytes.data()),
|
||||
file.uploadData->bytes.size());
|
||||
|
Reference in New Issue
Block a user