mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-08 08:04:08 +02:00
Fix pre-history visibility rights check.
This commit is contained in:
parent
be53cb027c
commit
8acd47bf2f
1 changed files with 3 additions and 3 deletions
|
@ -394,12 +394,12 @@ bool ChannelData::canEditPermissions() const {
|
|||
}
|
||||
|
||||
bool ChannelData::canEditSignatures() const {
|
||||
return canEditInformation();
|
||||
return isChannel() && canEditInformation();
|
||||
}
|
||||
|
||||
bool ChannelData::canEditPreHistoryHidden() const {
|
||||
return canEditInformation()
|
||||
&& isMegagroup()
|
||||
return isMegagroup()
|
||||
&& ((adminRights() & AdminRight::f_ban_users) || amCreator())
|
||||
&& (!isPublic() || canEditUsername());
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue