diff --git a/Cargo.toml b/Cargo.toml index a80ad4a6..1aef59f4 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -16,7 +16,7 @@ edition = "2018" http = "0.2.0" js_int = { version = "0.1.2", features = ["serde"] } ruma-api = "0.14.0" -ruma-events = "0.16.0" +ruma-events = "0.17.0" ruma-identifiers = "0.14.1" serde = { version = "1.0.104", features = ["derive"] } serde_json = "1.0.48" diff --git a/src/r0/sync/sync_events.rs b/src/r0/sync/sync_events.rs index 2abada9a..45b6f539 100644 --- a/src/r0/sync/sync_events.rs +++ b/src/r0/sync/sync_events.rs @@ -10,7 +10,7 @@ use ruma_events::{ only::Event as NonRoomEvent, }, presence::PresenceEvent, - stripped::StrippedState, + stripped::AnyStrippedStateEvent, EventResult, }; use ruma_identifiers::RoomId; @@ -228,8 +228,8 @@ pub struct InvitedRoom { #[derive(Clone, Debug, Serialize, Outgoing)] pub struct InviteState { /// A list of state events. - #[wrap_incoming(StrippedState with EventResult)] - pub events: Vec, + #[wrap_incoming(AnyStrippedStateEvent with EventResult)] + pub events: Vec, } /// Updates to the presence status of other users.