From f6c9cd982dde9c153268e258a137cb2f8740a745 Mon Sep 17 00:00:00 2001 From: Stefan Ceriu Date: Wed, 19 Apr 2023 17:39:53 +0300 Subject: [PATCH] Fixes #809 - Start using a timeline limit on the room subscriptions --- ElementX/Sources/Services/Room/RoomProxy.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ElementX/Sources/Services/Room/RoomProxy.swift b/ElementX/Sources/Services/Room/RoomProxy.swift index e84119549..23340c179 100644 --- a/ElementX/Sources/Services/Room/RoomProxy.swift +++ b/ElementX/Sources/Services/Room/RoomProxy.swift @@ -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 {