mirror of
				https://github.com/Blah-IM/blahrs.git
				synced 2025-10-29 18:11:36 +00:00 
			
		
		
		
	test(webapi): test room item posting and listing
This commit is contained in:
		
							parent
							
								
									1a0347337c
								
							
						
					
					
						commit
						c0ec429c24
					
				
					 3 changed files with 158 additions and 5 deletions
				
			
		|  | @ -413,7 +413,7 @@ impl Pagination { | |||
|     } | ||||
| } | ||||
| 
 | ||||
| #[derive(Debug, Serialize)] | ||||
| #[derive(Debug, Default, Clone, PartialEq, Eq, Serialize, Deserialize)] | ||||
| pub struct RoomItems { | ||||
|     pub items: Vec<WithItemId<ChatItem>>, | ||||
|     #[serde(skip_serializing_if = "Option::is_none")] | ||||
|  | @ -790,7 +790,7 @@ async fn room_admin( | |||
|                     "only self-adding is implemented yet", | ||||
|                 )); | ||||
|             } | ||||
|             if permission.is_empty() || !MemberPermission::MAX_SELF_ADD.contains(permission) { | ||||
|             if !MemberPermission::MAX_SELF_ADD.contains(permission) { | ||||
|                 return Err(error_response!( | ||||
|                     StatusCode::BAD_REQUEST, | ||||
|                     "deserialization", | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 oxalica
						oxalica