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:
@@ -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()) {
|
||||
|
@@ -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)) {
|
||||
|
Reference in New Issue
Block a user