mirror of
https://gitlab.computer.surgery/matrix/grapevine.git
synced 2025-12-17 15:51:23 +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
|
|
@ -1,13 +1,13 @@
|
|||
use ruma::api::client::{error::ErrorKind, typing::create_typing_event};
|
||||
|
||||
use crate::{services, utils, Error, Result, Ruma, RumaResponse};
|
||||
use crate::{services, utils, Error, Ra, Result, Ruma};
|
||||
|
||||
/// # `PUT /_matrix/client/r0/rooms/{roomId}/typing/{userId}`
|
||||
///
|
||||
/// Sets the typing state of the sender user.
|
||||
pub(crate) async fn create_typing_event_route(
|
||||
body: Ruma<create_typing_event::v3::Request>,
|
||||
) -> Result<RumaResponse<create_typing_event::v3::Response>> {
|
||||
) -> Result<Ra<create_typing_event::v3::Response>> {
|
||||
use create_typing_event::v3::Typing;
|
||||
|
||||
let sender_user = body.sender_user.as_ref().expect("user is authenticated");
|
||||
|
|
@ -40,5 +40,5 @@ pub(crate) async fn create_typing_event_route(
|
|||
.await?;
|
||||
}
|
||||
|
||||
Ok(RumaResponse(create_typing_event::v3::Response {}))
|
||||
Ok(Ra(create_typing_event::v3::Response {}))
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue