switch back to expect for sender_user
as far as i can tell, it will return a normal error in the auth token handling code so this is fine. we also shouldnt assume all errors from this are access_token related. Signed-off-by: strawberry <strawberry@puppygock.gay>
This commit is contained in:
parent
02bc818633
commit
ab6cb4ad2d
1 changed files with 1 additions and 4 deletions
|
@ -70,10 +70,7 @@ pub async fn get_public_rooms_route(
|
|||
.config
|
||||
.allow_public_room_directory_without_auth
|
||||
{
|
||||
let _sender_user = body
|
||||
.sender_user
|
||||
.as_ref()
|
||||
.ok_or_else(|| Error::BadRequest(ErrorKind::MissingToken, "Missing access token."))?;
|
||||
let _sender_user = body.sender_user.as_ref().expect("user is authenticated");
|
||||
}
|
||||
|
||||
let response = get_public_rooms_filtered_helper(
|
||||
|
|
Loading…
Add table
Reference in a new issue