Fixes #809 - Start using a timeline limit on the room subscriptions

This commit is contained in:
Stefan Ceriu
2023-04-19 17:39:53 +03:00
committed by Stefan Ceriu
parent de20e3a534
commit f6c9cd982d

View File

@@ -141,7 +141,7 @@ class RoomProxy: RoomProxyProtocol {
let settings = RoomSubscription(requiredState: [RequiredState(key: "m.room.topic", value: ""),
RequiredState(key: "m.room.canonical_alias", value: ""),
RequiredState(key: "m.room.join_rules", value: "")],
timelineLimit: nil)
timelineLimit: UInt32(SlidingSyncConstants.timelinePrecachingTimelineLimit))
if let result = try? slidingSyncRoom.subscribeAndAddTimelineListener(listener: listener, settings: settings) {
timelineObservationToken = result.taskHandle
Task {