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:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user