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

Start schedule message box.

This commit is contained in:
John Preston
2019-08-13 16:35:49 +01:00
parent 03cdddfe18
commit debeb61540
9 changed files with 162 additions and 11 deletions

View File

@@ -292,7 +292,18 @@ HistoryItem *ScheduledMessages::append(
});
const auto i = list.itemById.find(id);
if (i != end(list.itemById)) {
return i->second;
const auto existing = i->second;
message.match([&](const MTPDmessage &data) {
existing->updateSentContent({
qs(data.vmessage()),
TextUtilities::EntitiesFromMTP(
data.ventities().value_or_empty())
}, data.vmedia());
existing->updateReplyMarkup(data.vreply_markup());
existing->updateForwardedInfo(data.vfwd_from());
history->owner().requestItemTextRefresh(existing);
}, [&](const auto &data) {});
return existing;
}
const auto item = _session->data().addNewMessage(