mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-22 00:57:09 +02:00
Added handling of updates for edited media in scheduled messages.
This commit is contained in:
parent
01dc3b9382
commit
7dd9adb934
1 changed files with 6 additions and 0 deletions
|
@ -408,6 +408,12 @@ HistoryItem *ScheduledMessages::append(
|
|||
if (i != end(list.itemById)) {
|
||||
const auto existing = i->second;
|
||||
message.match([&](const MTPDmessage &data) {
|
||||
// Scheduled messages never have an edit date,
|
||||
// so if we receive a flag about it,
|
||||
// probably this message was edited.
|
||||
if (data.is_edit_hide()) {
|
||||
existing->applyEdition(data);
|
||||
}
|
||||
existing->updateSentContent({
|
||||
qs(data.vmessage()),
|
||||
Api::EntitiesFromMTP(
|
||||
|
|
Loading…
Add table
Reference in a new issue