Drop the timeline limit to 1 on the visible rooms sliding sync view

This commit is contained in:
Stefan Ceriu
2023-01-26 12:06:40 +02:00
committed by Stefan Ceriu
parent 58d5346db4
commit 86aec7896b
@@ -252,7 +252,7 @@ class ClientProxy: ClientProxyProtocol {
// Build the visibleRoomsSlidingSyncView here so that it can take advantage of the SS builder cold cache // Build the visibleRoomsSlidingSyncView here so that it can take advantage of the SS builder cold cache
// We will still register the allRoomsSlidingSyncView later, and than will have no cache // We will still register the allRoomsSlidingSyncView later, and than will have no cache
let visibleRoomsView = try SlidingSyncViewBuilder() let visibleRoomsView = try SlidingSyncViewBuilder()
.timelineLimit(limit: 20) .timelineLimit(limit: 1)
.requiredState(requiredState: slidingSyncRequiredState) .requiredState(requiredState: slidingSyncRequiredState)
.filters(filters: slidingSyncFilters) .filters(filters: slidingSyncFilters)
.name(name: "CurrentlyVisibleRooms") .name(name: "CurrentlyVisibleRooms")