mirror of
https://github.com/girlbossceo/ruwuma.git
synced 2025-04-29 06:49:48 -04:00
add msc4190 to appservice registration
Signed-off-by: June Clementine Strawberry <june@3.dog>
This commit is contained in:
parent
80bcb24b1f
commit
0701341a2f
1 changed files with 8 additions and 1 deletions
|
@ -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,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue