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