mirror of
https://gitlab.computer.surgery/matrix/grapevine.git
synced 2025-12-18 08:11:24 +01:00
rename Ruma to Ar
This follows the pattern of the previous commit.
This commit is contained in:
parent
7ea98dac72
commit
f8961d5578
37 changed files with 183 additions and 181 deletions
|
|
@ -8,13 +8,13 @@ use ruma::api::client::{
|
|||
};
|
||||
|
||||
use super::SESSION_ID_LENGTH;
|
||||
use crate::{services, utils, Error, Ra, Result, Ruma};
|
||||
use crate::{services, utils, Ar, Error, Ra, Result};
|
||||
|
||||
/// # `GET /_matrix/client/r0/devices`
|
||||
///
|
||||
/// Get metadata on all devices of the sender user.
|
||||
pub(crate) async fn get_devices_route(
|
||||
body: Ruma<get_devices::v3::Request>,
|
||||
body: Ar<get_devices::v3::Request>,
|
||||
) -> Result<Ra<get_devices::v3::Response>> {
|
||||
let sender_user = body.sender_user.as_ref().expect("user is authenticated");
|
||||
|
||||
|
|
@ -33,7 +33,7 @@ pub(crate) async fn get_devices_route(
|
|||
///
|
||||
/// Get metadata on a single device of the sender user.
|
||||
pub(crate) async fn get_device_route(
|
||||
body: Ruma<get_device::v3::Request>,
|
||||
body: Ar<get_device::v3::Request>,
|
||||
) -> Result<Ra<get_device::v3::Response>> {
|
||||
let sender_user = body.sender_user.as_ref().expect("user is authenticated");
|
||||
|
||||
|
|
@ -51,7 +51,7 @@ pub(crate) async fn get_device_route(
|
|||
///
|
||||
/// Updates the metadata on a given device of the sender user.
|
||||
pub(crate) async fn update_device_route(
|
||||
body: Ruma<update_device::v3::Request>,
|
||||
body: Ar<update_device::v3::Request>,
|
||||
) -> Result<Ra<update_device::v3::Response>> {
|
||||
let sender_user = body.sender_user.as_ref().expect("user is authenticated");
|
||||
|
||||
|
|
@ -82,7 +82,7 @@ pub(crate) async fn update_device_route(
|
|||
/// - Forgets to-device events
|
||||
/// - Triggers device list updates
|
||||
pub(crate) async fn delete_device_route(
|
||||
body: Ruma<delete_device::v3::Request>,
|
||||
body: Ar<delete_device::v3::Request>,
|
||||
) -> Result<Ra<delete_device::v3::Response>> {
|
||||
let sender_user = body.sender_user.as_ref().expect("user is authenticated");
|
||||
let sender_device =
|
||||
|
|
@ -136,7 +136,7 @@ pub(crate) async fn delete_device_route(
|
|||
/// - Forgets to-device events
|
||||
/// - Triggers device list updates
|
||||
pub(crate) async fn delete_devices_route(
|
||||
body: Ruma<delete_devices::v3::Request>,
|
||||
body: Ar<delete_devices::v3::Request>,
|
||||
) -> Result<Ra<delete_devices::v3::Response>> {
|
||||
let sender_user = body.sender_user.as_ref().expect("user is authenticated");
|
||||
let sender_device =
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue