mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +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)) {
|
if (i != end(list.itemById)) {
|
||||||
const auto existing = i->second;
|
const auto existing = i->second;
|
||||||
message.match([&](const MTPDmessage &data) {
|
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({
|
existing->updateSentContent({
|
||||||
qs(data.vmessage()),
|
qs(data.vmessage()),
|
||||||
Api::EntitiesFromMTP(
|
Api::EntitiesFromMTP(
|
||||||
|
|
Loading…
Add table
Reference in a new issue