mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 06:26:18 +00:00
Fix pre-history visibility rights check.
This commit is contained in:
@@ -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());
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user