mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-14 05:07:10 +02:00
Allow filtering users gifts.
This commit is contained in:
parent
482e337762
commit
c9cfe9e90f
2 changed files with 2 additions and 4 deletions
|
@ -444,9 +444,7 @@ void WrapWidget::setupTopBarMenuToggle() {
|
|||
addTopBarMenuButton();
|
||||
}
|
||||
}, _topBar->lifetime());
|
||||
} else if (section.type() == Section::Type::PeerGifts
|
||||
&& key.peer()
|
||||
&& key.peer()->isChannel()) {
|
||||
} else if (section.type() == Section::Type::PeerGifts && key.peer()) {
|
||||
addTopBarMenuButton();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -630,7 +630,7 @@ void Widget::fillTopBarMenu(const Ui::Menu::MenuCallback &addAction) {
|
|||
});
|
||||
}, filter.skipUnique ? nullptr : &st::mediaPlayerMenuCheck);
|
||||
|
||||
if (_inner->peer()->canManageGifts()) {
|
||||
if (_inner->peer()->canManageGifts() && _inner->peer()->isChannel()) {
|
||||
addAction({ .isSeparator = true });
|
||||
|
||||
addAction(tr::lng_peer_gifts_filter_saved(tr::now), [=] {
|
||||
|
|
Loading…
Add table
Reference in a new issue