Update API scheme on layer 223.

This commit is contained in:
John Preston
2026-02-12 12:23:07 +04:00
parent aa94491ad7
commit e85bb2085c
17 changed files with 55 additions and 91 deletions
@@ -96,6 +96,7 @@ 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, tr::lng_rights_group_edit_rank(tr::now) },
{ Flag::ChangeInfo, tr::lng_rights_group_info(tr::now) },
};
if (!options.isForum) {
@@ -136,6 +137,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 +317,8 @@ ChatRestrictions NegateRestrictions(ChatRestrictions value) {
| Flag::SendMusic
| Flag::SendVoiceMessages
| Flag::SendFiles
| Flag::SendOther);
| Flag::SendOther
| Flag::EditRank);
}
auto Dependencies(ChatAdminRights)