client-api: Use Raw in create_room::Request's initial_state field

This commit is contained in:
Jonas Platte 2021-06-14 13:22:22 +02:00
parent fbe038ff7a
commit 28de60a90a
No known key found for this signature in database
GPG Key ID: CC154DE0E30B7C67
2 changed files with 6 additions and 1 deletions

View File

@ -1,5 +1,10 @@
# [unreleased] # [unreleased]
Breaking changes:
* Use `Raw<AnyInitialStateEvent>` over just `AnyInitialStateEvent` in the `initial_state` field
of `r0::room::create_room::Request`
# 0.10.2 # 0.10.2
Bug fixes: Bug fixes:

View File

@ -39,7 +39,7 @@ ruma_api! {
/// Takes precedence over events set by preset, but gets overridden by /// Takes precedence over events set by preset, but gets overridden by
/// name and topic keys. /// name and topic keys.
#[serde(default, skip_serializing_if = "<[_]>::is_empty")] #[serde(default, skip_serializing_if = "<[_]>::is_empty")]
pub initial_state: &'a [AnyInitialStateEvent], pub initial_state: &'a [Raw<AnyInitialStateEvent>],
/// A list of user IDs to invite to the room. /// A list of user IDs to invite to the room.
/// ///