2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +00:00

Update API scheme on layer 158.

This commit is contained in:
John Preston
2023-04-03 11:58:30 +04:00
parent 6be2fb9790
commit 312aa4b130
24 changed files with 198 additions and 127 deletions

View File

@@ -1175,6 +1175,11 @@ auto HtmlWriter::Wrap::pushMessage(
return "requested: "_q/* + data.peerId*/;
}, [&](const ActionSetChatWallPaper &data) {
return serviceFrom + " set a new background for this chat";
}, [&](const ActionSetSameChatWallPaper &data) {
return serviceFrom
+ " set "
+ wrapReplyToLink("the same background")
+ " for this chat";
}, [](v::null_t) { return QByteArray(); });
if (!serviceText.isEmpty()) {

View File

@@ -593,6 +593,10 @@ QByteArray SerializeMessage(
}, [&](const ActionSetChatWallPaper &data) {
pushActor();
pushAction("set_chat_wallpaper");
}, [&](const ActionSetSameChatWallPaper &data) {
pushActor();
pushAction("set_same_chat_wallpaper");
pushReplyToMsgId("message_id");
}, [](v::null_t) {});
if (v::is_null(message.action.content)) {