mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-30 22:25:12 +00:00
Added handling of updates for edited media in scheduled messages.
This commit is contained in:
@@ -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(
|
||||||
|
Reference in New Issue
Block a user