2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +00:00

Initial add filter / chats / edit filter link.

This commit is contained in:
John Preston
2023-03-28 18:14:53 +04:00
parent b7d9d549ff
commit 8a9d13c6e4
9 changed files with 520 additions and 14 deletions

View File

@@ -380,6 +380,16 @@ void ApiWrap::checkChatInvite(
)).done(std::move(done)).fail(std::move(fail)).send();
}
void ApiWrap::checkFilterInvite(
const QString &slug,
FnMut<void(const MTPcommunities_CommunityInvite &)> done,
Fn<void(const MTP::Error &)> fail) {
request(base::take(_checkFilterInviteRequestId)).cancel();
_checkFilterInviteRequestId = request(
MTPcommunities_CheckCommunityInvite(MTP_string(slug))
).done(std::move(done)).fail(std::move(fail)).send();
}
void ApiWrap::savePinnedOrder(Data::Folder *folder) {
const auto &order = _session->data().pinnedChatsOrder(folder);
const auto input = [](Dialogs::Key key) {