diff --git a/Telegram/Resources/langs/lang.strings b/Telegram/Resources/langs/lang.strings index ae91eb6e2..b1ec14723 100644 --- a/Telegram/Resources/langs/lang.strings +++ b/Telegram/Resources/langs/lang.strings @@ -4236,6 +4236,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL "lng_rights_restriction_for_all" = "This option is disabled for all members in Group Permissions."; "lng_rights_permission_for_all" = "This option is enabled for all members in Group Permissions."; "lng_rights_permission_unavailable" = "This permission is not available in public groups."; +"lng_rights_permission_in_discuss" = "This permission is not available in discussion groups."; "lng_rights_permission_cant_edit" = "You cannot change this permission."; "lng_rights_user_restrictions" = "User permissions"; "lng_rights_user_restrictions_header" = "What can this member do?"; diff --git a/Telegram/SourceFiles/boxes/peers/edit_peer_permissions_box.cpp b/Telegram/SourceFiles/boxes/peers/edit_peer_permissions_box.cpp index 4d6dbc3ec..2258f6c21 100644 --- a/Telegram/SourceFiles/boxes/peers/edit_peer_permissions_box.cpp +++ b/Telegram/SourceFiles/boxes/peers/edit_peer_permissions_box.cpp @@ -1129,11 +1129,14 @@ void ShowEditPeerPermissionsBox( disabledByAdminRights, tr::lng_rights_permission_cant_edit(tr::now)); if (const auto channel = peer->asChannel()) { - if (channel->isPublic() - || (channel->isMegagroup() && channel->linkedChat())) { + if (channel->isPublic()) { result.emplace( Flag::ChangeInfo | Flag::PinMessages, tr::lng_rights_permission_unavailable(tr::now)); + } else if (channel->isMegagroup() && channel->linkedChat()) { + result.emplace( + Flag::ChangeInfo | Flag::PinMessages, + tr::lng_rights_permission_in_discuss(tr::now)); } } return result;