client-api: Update the query parameter of check_registration_token_validity request

This commit is contained in:
Levitating Pineapple 2024-03-09 19:36:25 +01:00 committed by Kévin Commaille
parent a80caa4c21
commit 2655624e35

View File

@ -27,7 +27,7 @@ pub mod v1 {
pub struct Request {
/// The registration token to check the validity of.
#[ruma_api(query)]
pub registration_token: String,
pub token: String,
}
/// Response type for the `check_registration_token_validity` endpoint.
@ -39,8 +39,8 @@ pub mod v1 {
impl Request {
/// Creates a new `Request` with the given registration token.
pub fn new(registration_token: String) -> Self {
Self { registration_token }
pub fn new(token: String) -> Self {
Self { token }
}
}