mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 14:38:15 +00:00
@@ -381,7 +381,9 @@ bool ChannelData::canViewBanned() const {
|
||||
}
|
||||
|
||||
bool ChannelData::canEditInformation() const {
|
||||
return !amRestricted(Restriction::f_change_info);
|
||||
return isMegagroup()
|
||||
? !amRestricted(Restriction::f_change_info)
|
||||
: ((adminRights() & AdminRight::f_change_info) || amCreator());
|
||||
}
|
||||
|
||||
bool ChannelData::canEditPermissions() const {
|
||||
|
Reference in New Issue
Block a user