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:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user