mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-15 21:57:10 +02:00
Removed self from contacts list.
This commit is contained in:
parent
e6a80927c6
commit
ebbef70d42
1 changed files with 14 additions and 1 deletions
|
@ -59,7 +59,20 @@ constexpr auto kSearchPerPage = 50;
|
|||
object_ptr<Ui::BoxContent> PrepareContactsBox(
|
||||
not_null<Window::SessionController*> sessionController) {
|
||||
using Mode = ContactsBoxController::SortMode;
|
||||
auto controller = std::make_unique<ContactsBoxController>(
|
||||
class Controller final : public ContactsBoxController {
|
||||
public:
|
||||
using ContactsBoxController::ContactsBoxController;
|
||||
|
||||
protected:
|
||||
std::unique_ptr<PeerListRow> createRow(
|
||||
not_null<UserData*> user) override {
|
||||
return !user->isSelf()
|
||||
? ContactsBoxController::createRow(user)
|
||||
: nullptr;
|
||||
}
|
||||
|
||||
};
|
||||
auto controller = std::make_unique<Controller>(
|
||||
&sessionController->session());
|
||||
controller->setStyleOverrides(&st::contactsWithStories);
|
||||
controller->setStoriesShown(true);
|
||||
|
|
Loading…
Add table
Reference in a new issue