2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 14:45:14 +00:00

Update API scheme to layer 134.

This commit is contained in:
John Preston
2021-10-10 14:43:55 +04:00
parent 66a83d3862
commit 185523f66f
11 changed files with 124 additions and 48 deletions

View File

@@ -1106,6 +1106,9 @@ auto HtmlWriter::Wrap::pushMessage(
return isChannel
? ("Channel theme was changed to " + data.emoji).toUtf8()
: (serviceFrom + " changed chat theme to " + data.emoji).toUtf8();
}, [&](const ActionChatJoinedByRequest &data) {
return serviceFrom
+ " joined group by request";
}, [](v::null_t) { return QByteArray(); });
if (!serviceText.isEmpty()) {

View File

@@ -523,6 +523,9 @@ QByteArray SerializeMessage(
if (!data.emoji.isEmpty()) {
push("emoticon", data.emoji.toUtf8());
}
}, [&](const ActionChatJoinedByRequest &data) {
pushActor();
pushAction("join_group_by_request");
}, [](v::null_t) {});
if (v::is_null(message.action.content)) {