From 6cd39352802ab4670fd98aaab2060796d6980b0f Mon Sep 17 00:00:00 2001 From: Benjamin Kampmann Date: Wed, 8 Feb 2023 08:03:31 +0000 Subject: [PATCH] client-api: Fix event type inside sync_events::v4 required_state fields --- crates/ruma-client-api/src/sync/sync_events/v4.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/crates/ruma-client-api/src/sync/sync_events/v4.rs b/crates/ruma-client-api/src/sync/sync_events/v4.rs index e06eb8c6..ff8e7c1b 100644 --- a/crates/ruma-client-api/src/sync/sync_events/v4.rs +++ b/crates/ruma-client-api/src/sync/sync_events/v4.rs @@ -13,7 +13,7 @@ use ruma_common::{ events::{ AnyEphemeralRoomEvent, AnyGlobalAccountDataEvent, AnyRoomAccountDataEvent, AnyStrippedStateEvent, AnySyncStateEvent, AnySyncTimelineEvent, AnyToDeviceEvent, - TimelineEventType, + StateEventType, }, metadata, serde::{duration::opt_ms, Raw}, @@ -293,7 +293,7 @@ pub struct RoomDetailsConfig { /// Note that elements of this array are NOT sticky so they must be specified in full when they /// are changed. Sticky. #[serde(default, skip_serializing_if = "Vec::is_empty")] - pub required_state: Vec<(TimelineEventType, String)>, + pub required_state: Vec<(StateEventType, String)>, /// The maximum number of timeline events to return per room. Sticky. #[serde(skip_serializing_if = "Option::is_none")] @@ -309,7 +309,7 @@ pub struct IncludeOldRooms { /// Note that elements of this array are NOT sticky so they must be specified in full when they /// are changed. Sticky. #[serde(default, skip_serializing_if = "Vec::is_empty")] - pub required_state: Vec<(TimelineEventType, String)>, + pub required_state: Vec<(StateEventType, String)>, /// The maximum number of timeline events to return per room. Sticky. #[serde(skip_serializing_if = "Option::is_none")] @@ -325,7 +325,7 @@ pub struct RoomSubscription { /// Note that elements of this array are NOT sticky so they must be specified in full when they /// are changed. Sticky. #[serde(default, skip_serializing_if = "Vec::is_empty")] - pub required_state: Vec<(TimelineEventType, String)>, + pub required_state: Vec<(StateEventType, String)>, /// The maximum number of timeline events to return per room. Sticky. #[serde(skip_serializing_if = "Option::is_none")]