Use AnyStateEventStub for /sync response state events

This commit is contained in:
Devin R 2020-06-11 17:43:15 -04:00 committed by Jonas Platte
parent be0838e7d3
commit a4dd53ef98

View File

@ -5,7 +5,7 @@ use std::{collections::BTreeMap, time::Duration};
use js_int::UInt;
use ruma_api::ruma_api;
use ruma_events::{
presence::PresenceEvent, AnyBasicEvent, AnyEphemeralRoomEvent, AnyRoomEvent, AnyStateEvent,
presence::PresenceEvent, AnyBasicEvent, AnyEphemeralRoomEvent, AnyRoomEvent, AnyStateEventStub,
AnyStrippedStateEventStub, AnyToDeviceEvent, EventJson,
};
use ruma_identifiers::{RoomId, UserId};
@ -257,7 +257,7 @@ impl Timeline {
#[derive(Clone, Debug, Default, Deserialize, Serialize)]
pub struct State {
/// A list of state events.
pub events: Vec<EventJson<AnyStateEvent>>,
pub events: Vec<EventJson<AnyStateEventStub>>,
}
impl State {