From e57742e7de64534e444e4f644f7513c47218ad4d Mon Sep 17 00:00:00 2001 From: John Preston Date: Thu, 10 Oct 2024 14:32:11 +0400 Subject: [PATCH] Don't show non-working wallpaper button. --- .../history/view/media/history_view_theme_document.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Telegram/SourceFiles/history/view/media/history_view_theme_document.cpp b/Telegram/SourceFiles/history/view/media/history_view_theme_document.cpp index ef72e8f08..66db74036 100644 --- a/Telegram/SourceFiles/history/view/media/history_view_theme_document.cpp +++ b/Telegram/SourceFiles/history/view/media/history_view_theme_document.cpp @@ -517,7 +517,7 @@ TextWithEntities ThemeDocumentBox::subtitle() { } rpl::producer ThemeDocumentBox::button() { - if (_parent->data()->out()) { + if (_parent->data()->out() || _parent->history()->peer->isChannel()) { return {}; } return rpl::conditional(