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:
Ivan Enderlin
2023-08-24 10:36:04 +02:00
parent 4dbb0a7cc7
commit 3dbc00cd67

View File

@@ -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()),