mirror of
				https://github.com/Blah-IM/blahrs.git
				synced 2025-10-30 10:21:38 +00:00 
			
		
		
		
	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:
		
							parent
							
								
									93d779b615
								
							
						
					
					
						commit
						985ea1d68a
					
				
					 5 changed files with 27 additions and 75 deletions
				
			
		|  | @ -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, | ||||
| } | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 oxalica
						oxalica