From 543c03f8f2d0f5a357b6be41cc0e166aa58cce63 Mon Sep 17 00:00:00 2001 From: kegsay Date: Wed, 8 Mar 2023 12:28:53 +0000 Subject: [PATCH] client-api: Use the right EDU types in sliding sync --- crates/ruma-client-api/src/sync/sync_events/v4.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 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 3a40ac5b..09d31b27 100644 --- a/crates/ruma-client-api/src/sync/sync_events/v4.rs +++ b/crates/ruma-client-api/src/sync/sync_events/v4.rs @@ -11,9 +11,9 @@ use js_int::UInt; use ruma_common::{ api::{request, response, Metadata}, events::{ - AnyEphemeralRoomEvent, AnyGlobalAccountDataEvent, AnyRoomAccountDataEvent, - AnyStrippedStateEvent, AnySyncStateEvent, AnySyncTimelineEvent, AnyToDeviceEvent, - StateEventType, + receipt::SyncReceiptEvent, typing::SyncTypingEvent, AnyGlobalAccountDataEvent, + AnyRoomAccountDataEvent, AnyStrippedStateEvent, AnySyncStateEvent, AnySyncTimelineEvent, + AnyToDeviceEvent, StateEventType, }, metadata, serde::{duration::opt_ms, Raw}, @@ -642,9 +642,9 @@ pub struct ReceiptsConfig { #[derive(Clone, Debug, Default, Serialize, Deserialize)] #[cfg_attr(not(feature = "unstable-exhaustive-types"), non_exhaustive)] pub struct Receipts { - /// The empheral receipt room event for each room + /// The ephemeral receipt room event for each room #[serde(default, skip_serializing_if = "BTreeMap::is_empty")] - pub rooms: BTreeMap>, + pub rooms: BTreeMap>, } /// Typing extension configuration. @@ -668,5 +668,5 @@ pub struct TypingConfig { pub struct Typing { /// The empheral typing event for each room #[serde(default, skip_serializing_if = "BTreeMap::is_empty")] - pub rooms: BTreeMap>, + pub rooms: BTreeMap>, }