mirror of
https://gitlab.computer.surgery/matrix/grapevine.git
synced 2025-12-20 01:01:24 +01:00
rename RumaResponse to Ra
It's very commonly used so having a short name is worthwhile, I think.
This commit is contained in:
parent
230ebd3884
commit
7ea98dac72
38 changed files with 332 additions and 351 deletions
|
|
@ -6,7 +6,7 @@ use ruma::{
|
|||
},
|
||||
};
|
||||
|
||||
use crate::{services, Result, Ruma, RumaResponse};
|
||||
use crate::{services, Ra, Result, Ruma};
|
||||
|
||||
/// # `POST /_matrix/client/r0/user_directory/search`
|
||||
///
|
||||
|
|
@ -17,7 +17,7 @@ use crate::{services, Result, Ruma, RumaResponse};
|
|||
/// and don't share a room with the sender
|
||||
pub(crate) async fn search_users_route(
|
||||
body: Ruma<search_users::v3::Request>,
|
||||
) -> Result<RumaResponse<search_users::v3::Response>> {
|
||||
) -> Result<Ra<search_users::v3::Response>> {
|
||||
let sender_user = body.sender_user.as_ref().expect("user is authenticated");
|
||||
let limit = body.limit.try_into().unwrap_or(usize::MAX);
|
||||
|
||||
|
|
@ -99,7 +99,7 @@ pub(crate) async fn search_users_route(
|
|||
let results = users.by_ref().take(limit).collect();
|
||||
let limited = users.next().is_some();
|
||||
|
||||
Ok(RumaResponse(search_users::v3::Response {
|
||||
Ok(Ra(search_users::v3::Response {
|
||||
results,
|
||||
limited,
|
||||
}))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue