Hide photo change button for monoforums.

This commit is contained in:
John Preston 2025-06-09 09:24:46 +04:00
parent a8fc5a722f
commit 22f9b1a0b1

View file

@ -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()