2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 22:46:10 +00:00

Update API scheme to layer 122.

This commit is contained in:
John Preston
2020-11-20 18:19:31 +03:00
parent 62eaa3f225
commit 3aa2619a7f
4 changed files with 40 additions and 3 deletions

View File

@@ -1112,6 +1112,10 @@ ServiceAction ParseServiceAction(
}
content.distance = data.vdistance().v;
result.content = content;
}, [&](const MTPDmessageActionGroupCall &data) {
// #TODO calls
}, [&](const MTPDmessageActionInviteToGroupCall &data) {
// #TODO calls
}, [](const MTPDmessageActionEmpty &data) {});
return result;
}

View File

@@ -323,6 +323,12 @@ void HistoryService::setMessageByAction(const MTPmessageAction &action) {
}, [](const MTPDmessageActionSecureValuesSentMe &) {
LOG(("API Error: messageActionSecureValuesSentMe received."));
return PreparedText{ tr::lng_message_empty(tr::now) };
}, [&](const MTPDmessageActionGroupCall &data) {
// #TODO calls
return PreparedText{ "Group call" };
}, [&](const MTPDmessageActionInviteToGroupCall &data) {
// #TODO calls
return PreparedText{ "Invite to group call" };
}, [](const MTPDmessageActionEmpty &) {
return PreparedText{ tr::lng_message_empty(tr::now) };
});

View File

@@ -100,6 +100,8 @@ bool SendActionPainter::updateNeedsAnimating(
|| (i->second.until <= now)) {
emplaceAction(Type::PlayGame, kStatusShowClientsidePlayGame);
}
}, [&](const MTPDspeakingInGroupCallAction &) {
// #TODO calls
}, [&](const MTPDsendMessageCancelAction &) {
Unexpected("CancelAction here.");
});