mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-30 05:58:38 +00:00
Allow filtering users gifts.
This commit is contained in:
parent
482e337762
commit
c9cfe9e90f
@ -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…
x
Reference in New Issue
Block a user