2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 14:45:14 +00:00

Removed MTP* from applying message edition.

Fixed #17073.
This commit is contained in:
23rd
2021-10-08 01:40:10 +03:00
committed by John Preston
parent 6c0dccd9ff
commit 816f422e21
11 changed files with 118 additions and 73 deletions

View File

@@ -448,7 +448,7 @@ HistoryItem *ScheduledMessages::append(
// so if we receive a flag about it,
// probably this message was edited.
if (data.is_edit_hide()) {
existing->applyEdition(data);
existing->applyEdition(HistoryMessageEdition(_session, data));
}
existing->updateSentContent({
qs(data.vmessage()),

View File

@@ -1826,8 +1826,10 @@ void Session::updateEditedMessage(const MTPMessage &data) {
checkEntitiesAndViewsUpdate(data.c_message());
}
data.match([](const MTPDmessageEmpty &) {
}, [&](const auto &data) {
}, [&](const MTPDmessageService &data) {
existing->applyEdition(data);
}, [&](const auto &data) {
existing->applyEdition(HistoryMessageEdition(_session, data));
});
}