mirror of
https://github.com/matrix-org/matrix-rust-sdk.git
synced 2026-05-16 03:55:42 -04:00
fix(sdk): Change SlidingSyncList::room_list's capacity
fix(sdk): Change `SlidingSyncList::room_list`'s capacity
This commit is contained in:
@@ -223,7 +223,9 @@ impl SlidingSyncListBuilder {
|
||||
// otherwise.
|
||||
state: StdRwLock::new(Observable::new(Default::default())),
|
||||
maximum_number_of_rooms: StdRwLock::new(Observable::new(None)),
|
||||
room_list: StdRwLock::new(ObservableVector::from(Vector::new())),
|
||||
// TODO: We need to do batching here instead of increasing the capacity. We want to
|
||||
// avoid triggering `VectorDiff::Reset` as much as possible.
|
||||
room_list: StdRwLock::new(ObservableVector::with_capacity(4096)),
|
||||
|
||||
// Internal data.
|
||||
sliding_sync_internal_channel_sender,
|
||||
|
||||
Reference in New Issue
Block a user