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

Don't use MTP* in the image editor.

This commit is contained in:
John Preston
2021-10-04 08:46:12 +04:00
parent 21ac2b8f3a
commit 84f561b251
5 changed files with 14 additions and 8 deletions

View File

@@ -1007,8 +1007,11 @@ void FileLoadTask::process(Args &&args) {
if (auto image = std::get_if<Ui::PreparedFileInformation::Image>(
&_information->media)) {
if (image->modifications.paint) {
_result->attachedStickers =
image->modifications.paint->attachedStickers();
const auto documents
= image->modifications.paint->attachedStickers();
_result->attachedStickers = documents
| ranges::view::transform(&DocumentData::mtpInput)
| ranges::to_vector;
}
}
}