Support for people banned from joining groups via link
This commit is contained in:
parent
1b7496399b
commit
f217730b84
17 changed files with 455 additions and 108 deletions
|
@ -45,6 +45,10 @@ message MemberPendingAdminApproval {
|
|||
uint64 timestamp = 4;
|
||||
}
|
||||
|
||||
message MemberBanned {
|
||||
bytes userId = 1;
|
||||
}
|
||||
|
||||
message AccessControl {
|
||||
enum AccessRequired {
|
||||
UNKNOWN = 0;
|
||||
|
@ -72,6 +76,8 @@ message Group {
|
|||
bytes inviteLinkPassword = 10;
|
||||
bytes descriptionBytes = 11;
|
||||
bool announcementsOnly = 12;
|
||||
repeated MemberBanned membersBanned = 13;
|
||||
// next: 14
|
||||
}
|
||||
|
||||
message GroupChange {
|
||||
|
@ -121,6 +127,14 @@ message GroupChange {
|
|||
Member.Role role = 2;
|
||||
}
|
||||
|
||||
message AddMemberBannedAction {
|
||||
MemberBanned added = 1;
|
||||
}
|
||||
|
||||
message DeleteMemberBannedAction {
|
||||
bytes deletedUserId = 1;
|
||||
}
|
||||
|
||||
message ModifyTitleAction {
|
||||
bytes title = 1;
|
||||
}
|
||||
|
@ -183,6 +197,9 @@ message GroupChange {
|
|||
ModifyInviteLinkPasswordAction modifyInviteLinkPassword = 19; // change epoch = 1
|
||||
ModifyDescriptionAction modifyDescription = 20; // change epoch = 2
|
||||
ModifyAnnouncementsOnlyAction modifyAnnouncementsOnly = 21; // change epoch = 3
|
||||
repeated AddMemberBannedAction addMembersBanned = 22; // change epoch = 4
|
||||
repeated DeleteMemberBannedAction deleteMembersBanned = 23; // change epoch = 4
|
||||
// next: 24
|
||||
}
|
||||
|
||||
bytes actions = 1; // The serialized actions
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue