Convert Timeline's events field AnyRoomEvent -> AnyRoomEventStub
This commit is contained in:
parent
a4dd53ef98
commit
a6feed7dcb
@ -5,8 +5,8 @@ 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, AnyStateEventStub,
|
presence::PresenceEvent, AnyBasicEvent, AnyEphemeralRoomEvent, AnyRoomEventStub,
|
||||||
AnyStrippedStateEventStub, AnyToDeviceEvent, EventJson,
|
AnyStateEventStub, AnyStrippedStateEventStub, AnyToDeviceEvent, EventJson,
|
||||||
};
|
};
|
||||||
use ruma_identifiers::{RoomId, UserId};
|
use ruma_identifiers::{RoomId, UserId};
|
||||||
use serde::{Deserialize, Serialize};
|
use serde::{Deserialize, Serialize};
|
||||||
@ -243,7 +243,7 @@ pub struct Timeline {
|
|||||||
pub prev_batch: Option<String>,
|
pub prev_batch: Option<String>,
|
||||||
|
|
||||||
/// A list of events.
|
/// A list of events.
|
||||||
pub events: Vec<EventJson<AnyRoomEvent>>,
|
pub events: Vec<EventJson<AnyRoomEventStub>>,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl Timeline {
|
impl Timeline {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user