Fixed rare crash in photo editor when editing media in message.

This commit is contained in:
23rd 2024-05-14 17:16:02 +03:00
parent 76137ca1cf
commit 264e35a6a8
1 changed files with 3 additions and 0 deletions

View File

@ -206,6 +206,9 @@ void EditPhotoImage(
Storage::UpdateImageDetails(file, previewWidth, sideLimit);
done(std::move(list));
};
if (!large) {
return;
}
const auto fileImage = std::make_shared<Image>(*large);
auto editor = base::make_unique_q<Editor::PhotoEditor>(
parent,