2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-09-04 08:25:38 +00:00

Correctly apply editions to media-edit-in-progress.

This commit is contained in:
John Preston
2023-08-10 18:10:58 +03:00
parent 21b06f390c
commit dfe36f638b
4 changed files with 40 additions and 15 deletions

View File

@@ -456,7 +456,6 @@ void SendConfirmedFile(
}());
if (itemToEdit) {
itemToEdit->savePreviousMedia();
auto edition = HistoryMessageEdition();
edition.isEditHide = (flags & MessageFlag::HideEdited);
edition.editDate = 0;
@@ -468,6 +467,7 @@ void SendConfirmedFile(
edition.useSameMarkup = true;
edition.useSameReplies = true;
edition.useSameReactions = true;
edition.savePreviousMedia = true;
itemToEdit->applyEdition(std::move(edition));
} else {
const auto viaBotId = UserId();