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

Update API scheme on layer 144.

This commit is contained in:
John Preston
2022-07-01 13:04:21 +04:00
parent 2499955496
commit 00d1828fbe
5 changed files with 22 additions and 6 deletions

View File

@@ -613,6 +613,10 @@ void HistoryService::setMessageByAction(const MTPmessageAction &action) {
return result;
};
auto prepareGiftPremium = [](const MTPDmessageActionGiftPremium &action) {
return PreparedText{ .text = { "gift premium" }, }; // #TODO gifts
};
const auto messageText = action.match([&](
const MTPDmessageActionChatAddUser &data) {
return prepareChatAddUserText(data);
@@ -680,6 +684,8 @@ void HistoryService::setMessageByAction(const MTPmessageAction &action) {
return prepareChatJoinedByRequest(data);
}, [&](const MTPDmessageActionWebViewDataSent &data) {
return prepareWebViewDataSent(data);
}, [&](const MTPDmessageActionGiftPremium &data) {
return prepareGiftPremium(data);
}, [&](const MTPDmessageActionWebViewDataSentMe &data) {
LOG(("API Error: messageActionWebViewDataSentMe received."));
return PreparedText{