mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 06:35:14 +00:00
Implement sending of shortcutted messages.
This commit is contained in:
@@ -20,6 +20,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
||||
#include "mtproto/mtp_instance.h"
|
||||
#include "mtproto/mtproto_config.h"
|
||||
#include "mtproto/mtproto_dc_options.h"
|
||||
#include "data/business/data_shortcut_messages.h"
|
||||
#include "data/notify/data_notify_settings.h"
|
||||
#include "data/stickers/data_stickers.h"
|
||||
#include "data/data_saved_messages.h"
|
||||
@@ -1774,6 +1775,31 @@ void Updates::feedUpdate(const MTPUpdate &update) {
|
||||
session().data().scheduledMessages().apply(d);
|
||||
} break;
|
||||
|
||||
case mtpc_updateQuickReplies: {
|
||||
const auto &d = update.c_updateQuickReplies();
|
||||
session().data().shortcutMessages().apply(d);
|
||||
} break;
|
||||
|
||||
case mtpc_updateNewQuickReply: {
|
||||
const auto &d = update.c_updateNewQuickReply();
|
||||
session().data().shortcutMessages().apply(d);
|
||||
} break;
|
||||
|
||||
case mtpc_updateDeleteQuickReply: {
|
||||
const auto &d = update.c_updateDeleteQuickReply();
|
||||
session().data().shortcutMessages().apply(d);
|
||||
} break;
|
||||
|
||||
case mtpc_updateQuickReplyMessage: {
|
||||
const auto &d = update.c_updateQuickReplyMessage();
|
||||
session().data().shortcutMessages().apply(d);
|
||||
} break;
|
||||
|
||||
case mtpc_updateDeleteQuickReplyMessages: {
|
||||
const auto &d = update.c_updateDeleteQuickReplyMessages();
|
||||
session().data().shortcutMessages().apply(d);
|
||||
} break;
|
||||
|
||||
case mtpc_updateWebPage: {
|
||||
auto &d = update.c_updateWebPage();
|
||||
|
||||
|
Reference in New Issue
Block a user