2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-30 22:16:14 +00:00

Apply reactions from message edit updates.

This commit is contained in:
John Preston
2021-12-28 19:34:40 +03:00
parent 0ffd827fc5
commit aafc24008b
8 changed files with 18 additions and 6 deletions

View File

@@ -452,6 +452,7 @@ void SendConfirmedFile(
edition.textWithEntities = caption;
edition.useSameMarkup = true;
edition.useSameReplies = true;
edition.useSameReactions = true;
itemToEdit->applyEdition(std::move(edition));
} else {
const auto viaBotId = UserId();

View File

@@ -1625,7 +1625,7 @@ void Updates::feedUpdate(const MTPUpdate &update) {
peer,
d.vmsg_id().v);
if (item) {
item->updateReactions(d.vreactions());
item->updateReactions(&d.vreactions());
}
}
} break;