Merge tag 'v6.6.2' into dev

This commit is contained in:
AlexeyZavar
2026-03-19 01:20:42 +03:00
322 changed files with 11602 additions and 2747 deletions
@@ -96,6 +96,9 @@ constexpr auto kDefaultChargeStars = 10;
{ Flag::AddParticipants, tr::lng_rights_chat_add_members(tr::now) },
{ Flag::CreateTopics, tr::lng_rights_group_add_topics(tr::now) },
{ Flag::PinMessages, tr::lng_rights_group_pin(tr::now) },
{ Flag::EditRank, (options.isUserSpecific
? tr::lng_rights_group_edit_rank_single
: tr::lng_rights_group_edit_rank)(tr::now) },
{ Flag::ChangeInfo, tr::lng_rights_group_info(tr::now) },
};
if (!options.isForum) {
@@ -136,6 +139,7 @@ constexpr auto kDefaultChargeStars = 10;
};
auto second = std::vector<AdminRightLabel>{
{ Flag::ManageCall, tr::lng_rights_group_manage_calls(tr::now) },
{ Flag::ManageRanks, tr::lng_rights_group_manage_ranks(tr::now) },
{ Flag::Anonymous, tr::lng_rights_group_anonymous(tr::now) },
{ Flag::AddAdmins, tr::lng_rights_add_admins(tr::now) },
};
@@ -315,7 +319,8 @@ ChatRestrictions NegateRestrictions(ChatRestrictions value) {
| Flag::SendMusic
| Flag::SendVoiceMessages
| Flag::SendFiles
| Flag::SendOther);
| Flag::SendOther
| Flag::EditRank);
}
auto Dependencies(ChatAdminRights)