client-api: Use the right EDU types in sliding sync
This commit is contained in:
parent
01acabe8a6
commit
543c03f8f2
@ -11,9 +11,9 @@ use js_int::UInt;
|
|||||||
use ruma_common::{
|
use ruma_common::{
|
||||||
api::{request, response, Metadata},
|
api::{request, response, Metadata},
|
||||||
events::{
|
events::{
|
||||||
AnyEphemeralRoomEvent, AnyGlobalAccountDataEvent, AnyRoomAccountDataEvent,
|
receipt::SyncReceiptEvent, typing::SyncTypingEvent, AnyGlobalAccountDataEvent,
|
||||||
AnyStrippedStateEvent, AnySyncStateEvent, AnySyncTimelineEvent, AnyToDeviceEvent,
|
AnyRoomAccountDataEvent, AnyStrippedStateEvent, AnySyncStateEvent, AnySyncTimelineEvent,
|
||||||
StateEventType,
|
AnyToDeviceEvent, StateEventType,
|
||||||
},
|
},
|
||||||
metadata,
|
metadata,
|
||||||
serde::{duration::opt_ms, Raw},
|
serde::{duration::opt_ms, Raw},
|
||||||
@ -642,9 +642,9 @@ pub struct ReceiptsConfig {
|
|||||||
#[derive(Clone, Debug, Default, Serialize, Deserialize)]
|
#[derive(Clone, Debug, Default, Serialize, Deserialize)]
|
||||||
#[cfg_attr(not(feature = "unstable-exhaustive-types"), non_exhaustive)]
|
#[cfg_attr(not(feature = "unstable-exhaustive-types"), non_exhaustive)]
|
||||||
pub struct Receipts {
|
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")]
|
#[serde(default, skip_serializing_if = "BTreeMap::is_empty")]
|
||||||
pub rooms: BTreeMap<OwnedRoomId, Raw<AnyEphemeralRoomEvent>>,
|
pub rooms: BTreeMap<OwnedRoomId, Raw<SyncReceiptEvent>>,
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Typing extension configuration.
|
/// Typing extension configuration.
|
||||||
@ -668,5 +668,5 @@ pub struct TypingConfig {
|
|||||||
pub struct Typing {
|
pub struct Typing {
|
||||||
/// The empheral typing event for each room
|
/// The empheral typing event for each room
|
||||||
#[serde(default, skip_serializing_if = "BTreeMap::is_empty")]
|
#[serde(default, skip_serializing_if = "BTreeMap::is_empty")]
|
||||||
pub rooms: BTreeMap<OwnedRoomId, Raw<AnyEphemeralRoomEvent>>,
|
pub rooms: BTreeMap<OwnedRoomId, Raw<SyncTypingEvent>>,
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user