2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-30 22:25:12 +00:00

Update API scheme to layer 123.

This commit is contained in:
John Preston
2020-12-29 16:39:10 +04:00
parent b562a4a479
commit b396244606
9 changed files with 67 additions and 33 deletions

View File

@@ -33,8 +33,11 @@ constexpr auto kRequestTimeLimit = 60 * crl::time(1000);
}
MTPMessage PrepareMessage(const MTPMessage &message, MsgId id) {
return message.match([&](const MTPDmessageEmpty &) {
return MTP_messageEmpty(MTP_int(id));
return message.match([&](const MTPDmessageEmpty &data) {
return MTP_messageEmpty(
data.vflags(),
MTP_int(id),
data.vpeer_id() ? *data.vpeer_id() : MTPPeer());
}, [&](const MTPDmessageService &data) {
return MTP_messageService(
MTP_flags(data.vflags().v