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-03-31 13:06:13 +04:00
parent 7a9961b0e9
commit 4444844443
12 changed files with 75 additions and 10 deletions

View File

@@ -1173,6 +1173,8 @@ auto HtmlWriter::Wrap::pushMessage(
return serviceFrom + " suggests to use this photo";
}, [&](const ActionRequestedPeer &data) {
return "requested: "_q/* + data.peerId*/;
}, [&](const ActionSetChatWallPaper &data) {
return serviceFrom + " set a new background for this chat";
}, [](v::null_t) { return QByteArray(); });
if (!serviceText.isEmpty()) {

View File

@@ -590,6 +590,9 @@ QByteArray SerializeMessage(
pushAction("requested_peer");
push("button_id", data.buttonId);
push("peer_id", data.peerId.value);
}, [&](const ActionSetChatWallPaper &data) {
pushActor();
pushAction("set_chat_wallpaper");
}, [](v::null_t) {});
if (v::is_null(message.action.content)) {