Use original image for uploaded photos in editor.

This commit is contained in:
John Preston
2026-07-11 01:58:06 +04:00
parent 3dd77ee17f
commit 28fa759c3e
@@ -1828,6 +1828,17 @@ private:
i != end(_originalMediaImages)) {
return i->second;
}
for (const auto &attachment : _attachments) {
if ((attachment.blockKind == RichPage::BlockKind::Photo)
&& mediaIdMatchesAttachment(photoId, attachment)) {
const auto i = _originalMediaImages.find(
attachment.localMediaId);
if (i != end(_originalMediaImages)) {
return i->second;
}
break;
}
}
const auto photo = _session->data().photo(PhotoId(photoId));
const auto media = photo->createMediaView();
const auto origin = composeDraftOrigin();