mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-08-05 03:14:28 +00:00
Begin of EditPeerBox redesigning.
- Moved buttons from ManageGroupBox to EditPeerBox. - Added counting of permissions.
This commit is contained in:
@@ -644,6 +644,24 @@ Data::RestrictionCheckResult PeerData::amRestricted(
|
||||
|
||||
namespace Data {
|
||||
|
||||
std::vector<ChatRestrictions> ListOfRestrictions() {
|
||||
using Flag = ChatRestriction;
|
||||
|
||||
return {
|
||||
Flag::f_send_messages,
|
||||
Flag::f_send_media,
|
||||
Flag::f_send_stickers
|
||||
| Flag::f_send_gifs
|
||||
| Flag::f_send_games
|
||||
| Flag::f_send_inline,
|
||||
Flag::f_embed_links,
|
||||
Flag::f_send_polls,
|
||||
Flag::f_invite_users,
|
||||
Flag::f_pin_messages,
|
||||
Flag::f_change_info,
|
||||
};
|
||||
}
|
||||
|
||||
std::optional<LangKey> RestrictionErrorKey(
|
||||
not_null<PeerData*> peer,
|
||||
ChatRestriction restriction) {
|
||||
|
||||
Reference in New Issue
Block a user