Use AnyStateEventStub for /sync response state events
This commit is contained in:
parent
be0838e7d3
commit
a4dd53ef98
@ -5,7 +5,7 @@ use std::{collections::BTreeMap, time::Duration};
|
|||||||
use js_int::UInt;
|
use js_int::UInt;
|
||||||
use ruma_api::ruma_api;
|
use ruma_api::ruma_api;
|
||||||
use ruma_events::{
|
use ruma_events::{
|
||||||
presence::PresenceEvent, AnyBasicEvent, AnyEphemeralRoomEvent, AnyRoomEvent, AnyStateEvent,
|
presence::PresenceEvent, AnyBasicEvent, AnyEphemeralRoomEvent, AnyRoomEvent, AnyStateEventStub,
|
||||||
AnyStrippedStateEventStub, AnyToDeviceEvent, EventJson,
|
AnyStrippedStateEventStub, AnyToDeviceEvent, EventJson,
|
||||||
};
|
};
|
||||||
use ruma_identifiers::{RoomId, UserId};
|
use ruma_identifiers::{RoomId, UserId};
|
||||||
@ -257,7 +257,7 @@ impl Timeline {
|
|||||||
#[derive(Clone, Debug, Default, Deserialize, Serialize)]
|
#[derive(Clone, Debug, Default, Deserialize, Serialize)]
|
||||||
pub struct State {
|
pub struct State {
|
||||||
/// A list of state events.
|
/// A list of state events.
|
||||||
pub events: Vec<EventJson<AnyStateEvent>>,
|
pub events: Vec<EventJson<AnyStateEventStub>>,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl State {
|
impl State {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user