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