2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 14:45:14 +00:00

Moved settings of blocked peers to section.

This commit is contained in:
23rd
2022-05-01 21:08:16 +03:00
parent 639ed8b973
commit 1349989494
15 changed files with 284 additions and 13 deletions

View File

@@ -383,6 +383,7 @@ void BlockedBoxController::handleBlockedEvent(not_null<PeerData*> user) {
} else if (auto row = delegate()->peerListFindRow(user->id.value)) {
delegate()->peerListRemoveRow(row);
delegate()->peerListRefreshRows();
_rowsCountChanges.fire(delegate()->peerListFullRowsCount());
}
}
@@ -408,6 +409,7 @@ bool BlockedBoxController::appendRow(not_null<PeerData*> peer) {
return false;
}
delegate()->peerListAppendRow(createRow(peer));
_rowsCountChanges.fire(delegate()->peerListFullRowsCount());
return true;
}
@@ -416,6 +418,7 @@ bool BlockedBoxController::prependRow(not_null<PeerData*> peer) {
return false;
}
delegate()->peerListPrependRow(createRow(peer));
_rowsCountChanges.fire(delegate()->peerListFullRowsCount());
return true;
}
@@ -440,6 +443,10 @@ std::unique_ptr<PeerListRow> BlockedBoxController::createRow(
return row;
}
rpl::producer<int> BlockedBoxController::rowsCountChanges() const {
return _rowsCountChanges.events();
}
PhoneNumberPrivacyController::PhoneNumberPrivacyController(
not_null<Window::SessionController*> controller)
: _controller(controller) {