mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 14:45:14 +00:00
Add restricted users box like kicked users box.
Also allow server-side search inside restricted users list. Also allow server-side search inside kicked users list. Also allow PeerListController to work not only in PeerListBox.
This commit is contained in:
@@ -208,7 +208,10 @@ void PrivacyWidget::autoLockUpdated() {
|
||||
}
|
||||
|
||||
void PrivacyWidget::onBlockedUsers() {
|
||||
Ui::show(Box<PeerListBox>(std::make_unique<BlockedBoxController>()));
|
||||
Ui::show(Box<PeerListBox>(std::make_unique<BlockedBoxController>(), [](PeerListBox *box) {
|
||||
box->addButton(langFactory(lng_close), [box] { box->closeBox(); });
|
||||
box->addLeftButton(langFactory(lng_blocked_list_add), [box] { BlockedBoxController::BlockNewUser(); });
|
||||
}));
|
||||
}
|
||||
|
||||
void PrivacyWidget::onLastSeenPrivacy() {
|
||||
|
Reference in New Issue
Block a user