mirror of
https://github.com/matrix-org/matrix-rust-sdk.git
synced 2026-05-24 08:36:10 -04:00
feat(ui): Reduce the batch_size of invites in RoomListService.
This patch changes the `batch_size` of the sliding sync list `invites` for `RoomListService`. Previous value was 100, new value is 20. For accounts that have a large number of invites, it won't slow the rendering of `visible_rooms`.
This commit is contained in:
@@ -155,7 +155,7 @@ impl Action for AddInvitesList {
|
||||
sliding_sync
|
||||
.add_list(
|
||||
SlidingSyncList::builder(INVITES_LIST_NAME)
|
||||
.sync_mode(SlidingSyncMode::new_growing(100))
|
||||
.sync_mode(SlidingSyncMode::new_growing(20))
|
||||
.timeline_limit(0)
|
||||
.required_state(vec![
|
||||
(StateEventType::RoomAvatar, "".to_owned()),
|
||||
|
||||
Reference in New Issue
Block a user