From 22f9b1a0b1e3158ca328fcb93738429a51a797ad Mon Sep 17 00:00:00 2001 From: John Preston Date: Mon, 9 Jun 2025 09:24:46 +0400 Subject: [PATCH] Hide photo change button for monoforums. --- Telegram/SourceFiles/info/profile/info_profile_cover.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Telegram/SourceFiles/info/profile/info_profile_cover.cpp b/Telegram/SourceFiles/info/profile/info_profile_cover.cpp index 05a11f3008..f6798194c3 100644 --- a/Telegram/SourceFiles/info/profile/info_profile_cover.cpp +++ b/Telegram/SourceFiles/info/profile/info_profile_cover.cpp @@ -830,7 +830,8 @@ void Cover::refreshUploadPhotoOverlay() { if (const auto chat = _peer->asChat()) { return chat->canEditInformation(); } else if (const auto channel = _peer->asChannel()) { - return channel->canEditInformation(); + return channel->canEditInformation() + && !channel->isMonoforum(); } else if (const auto user = _peer->asUser()) { return user->isSelf() || (user->isContact()