Implement nice member/admin edit in groups.

This commit is contained in:
John Preston
2026-02-19 21:17:39 +04:00
parent 4d767fb279
commit 0f6a5480df
11 changed files with 245 additions and 40 deletions
@@ -1595,8 +1595,9 @@ void AddSpecialBoxController::showRestricted(
_editParticipantBox->closeBox();
}
});
const auto show = delegate()->peerListUiShow();
box->setSaveCallback(
SaveRestrictedCallback(_peer, user, done, fail));
SaveRestrictedCallback(show, _peer, user, done, fail));
}
_editParticipantBox = showBox(std::move(box));
}
@@ -1669,7 +1670,9 @@ void AddSpecialBoxController::kickUser(
const auto fail = crl::guard(this, [=] {
_editBox = nullptr;
});
const auto show = delegate()->peerListUiShow();
const auto callback = SaveRestrictedCallback(
show,
_peer,
participant,
done,