Implement proper shortcut management.

This commit is contained in:
John Preston
2024-02-28 08:58:37 +04:00
parent 23e22de6ec
commit f086203d25
19 changed files with 474 additions and 87 deletions
+2
View File
@@ -1560,6 +1560,8 @@ void Updates::feedUpdate(const MTPUpdate &update) {
if (const auto local = owner.message(id)) {
if (local->isScheduled()) {
session().data().scheduledMessages().apply(d, local);
} else if (local->isBusinessShortcut()) {
session().data().shortcutMessages().apply(d, local);
} else {
const auto existing = session().data().message(
id.peer,