mirror of
https://github.com/matrix-org/matrix-rust-sdk.git
synced 2026-06-22 07:08:32 -04:00
doc: document SlidingSyncRoomInner::timeline_queue a bit better
This commit is contained in:
@@ -271,6 +271,13 @@ struct SlidingSyncRoomInner {
|
||||
|
||||
/// A queue of received events, used to build a
|
||||
/// [`Timeline`][crate::Timeline].
|
||||
///
|
||||
/// Given a room, its size is theoretically unbounded: we'll accumulate
|
||||
/// events in this list, until we reach a limited sync, in which case
|
||||
/// we'll clear it.
|
||||
///
|
||||
/// When persisting the room, this queue is truncated to keep only the last
|
||||
/// N events.
|
||||
timeline_queue: RwLock<Vector<SyncTimelineEvent>>,
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user