2
0
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:
John Preston
2023-04-03 11:58:30 +04:00
parent 6be2fb9790
commit 312aa4b130
24 changed files with 198 additions and 127 deletions

View File

@@ -382,11 +382,11 @@ void ApiWrap::checkChatInvite(
void ApiWrap::checkFilterInvite(
const QString &slug,
FnMut<void(const MTPcommunities_CommunityInvite &)> done,
FnMut<void(const MTPchatlists_ChatlistInvite &)> done,
Fn<void(const MTP::Error &)> fail) {
request(base::take(_checkFilterInviteRequestId)).cancel();
_checkFilterInviteRequestId = request(
MTPcommunities_CheckCommunityInvite(MTP_string(slug))
MTPchatlists_CheckChatlistInvite(MTP_string(slug))
).done(std::move(done)).fail(std::move(fail)).send();
}