Don't show non-working wallpaper button.

This commit is contained in:
John Preston 2024-10-10 14:32:11 +04:00
parent 73b63aa414
commit e57742e7de

View file

@ -517,7 +517,7 @@ TextWithEntities ThemeDocumentBox::subtitle() {
}
rpl::producer<QString> ThemeDocumentBox::button() {
if (_parent->data()->out()) {
if (_parent->data()->out() || _parent->history()->peer->isChannel()) {
return {};
}
return rpl::conditional(