Clean
This commit is contained in:
parent
f12b0087c4
commit
c4983c9b1c
|
@ -200,9 +200,7 @@ pub async fn get_file(
|
|||
return Ok(json);
|
||||
}
|
||||
|
||||
pub async fn get_group_image(
|
||||
room_id: &str, auth_token: &str, pool: &storage::DatabaseConnectionPool,
|
||||
) -> Result<Response, Rejection> {
|
||||
pub async fn get_group_image(room_id: &str) -> Result<Response, Rejection> {
|
||||
// Try to read the file
|
||||
let raw_path = format!("files/{}", room_id);
|
||||
let path = Path::new(&raw_path);
|
||||
|
|
|
@ -123,7 +123,7 @@ async fn handle_get_request(
|
|||
return Err(warp::reject::custom(Error::InvalidRpcCall));
|
||||
}
|
||||
};
|
||||
return handlers::get_group_image(&room_id, &auth_token, &pool).await;
|
||||
return handlers::get_group_image(&room_id).await;
|
||||
}
|
||||
"messages" => {
|
||||
reject_if_file_server_mode(path)?;
|
||||
|
|
Loading…
Reference in New Issue