Convert Timeline's events field AnyRoomEvent -> AnyRoomEventStub

This commit is contained in:
Devin R 2020-06-12 15:06:02 -04:00 committed by Jonas Platte
parent a4dd53ef98
commit a6feed7dcb

View File

@ -5,8 +5,8 @@ use std::{collections::BTreeMap, time::Duration};
use js_int::UInt;
use ruma_api::ruma_api;
use ruma_events::{
presence::PresenceEvent, AnyBasicEvent, AnyEphemeralRoomEvent, AnyRoomEvent, AnyStateEventStub,
AnyStrippedStateEventStub, AnyToDeviceEvent, EventJson,
presence::PresenceEvent, AnyBasicEvent, AnyEphemeralRoomEvent, AnyRoomEventStub,
AnyStateEventStub, AnyStrippedStateEventStub, AnyToDeviceEvent, EventJson,
};
use ruma_identifiers::{RoomId, UserId};
use serde::{Deserialize, Serialize};
@ -243,7 +243,7 @@ pub struct Timeline {
pub prev_batch: Option<String>,
/// A list of events.
pub events: Vec<EventJson<AnyRoomEvent>>,
pub events: Vec<EventJson<AnyRoomEventStub>>,
}
impl Timeline {