remove(types)!: remove members from CreateGroup

Now a group can only be created with the creator as the only initial
member. This forbids group creator from adding other members without
their consent. Additional members can join the group later at their own
will.
This commit is contained in:
oxalica 2024-09-16 06:19:53 -04:00
parent 93d779b615
commit 985ea1d68a
5 changed files with 27 additions and 75 deletions

View file

@ -353,9 +353,6 @@ pub enum CreateRoomPayload {
#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)]
pub struct CreateGroup {
pub attrs: RoomAttrs,
/// The initial member list. Besides invariants of `RoomMemberList`, this also must include the
/// room creator themselves, with the highest permission (-1).
pub members: RoomMemberList,
pub title: String,
}