mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-07-24 14:33:02 +02:00
Hide photo change button for monoforums.
This commit is contained in:
parent
a8fc5a722f
commit
22f9b1a0b1
1 changed files with 2 additions and 1 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Reference in a new issue