add msc4190 to appservice registration

Signed-off-by: June Clementine Strawberry <june@3.dog>
This commit is contained in:
June Clementine Strawberry 2025-04-03 11:32:16 -04:00
parent 80bcb24b1f
commit 0701341a2f
No known key found for this signature in database

View file

@ -103,8 +103,14 @@ pub struct Registration {
/// Whether the application service wants to receive ephemeral data.
///
/// Defaults to `false`.
#[serde(default, skip_serializing_if = "ruma_common::serde::is_default")]
#[serde(default)]
pub receive_ephemeral: bool,
/// Whether the application service wants to do device management, as part of MSC4190.
///
/// Defaults to `false`
#[serde(default, rename = "io.element.msc4190")]
pub device_management: bool,
}
/// Initial set of fields of `Registration`.
@ -167,6 +173,7 @@ impl From<RegistrationInit> for Registration {
rate_limited,
receive_ephemeral: false,
protocols,
device_management: false,
}
}
}