From cee628e651425b0bdb319632dd660a2fd457487d Mon Sep 17 00:00:00 2001 From: Stefan Ceriu Date: Mon, 21 Nov 2022 18:18:48 +0200 Subject: [PATCH] Switch to the sliding sync room for working with the timeline --- ElementX/Sources/Services/Room/RoomProxy.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ElementX/Sources/Services/Room/RoomProxy.swift b/ElementX/Sources/Services/Room/RoomProxy.swift index daefc838d..e73dd14a6 100644 --- a/ElementX/Sources/Services/Room/RoomProxy.swift +++ b/ElementX/Sources/Services/Room/RoomProxy.swift @@ -37,7 +37,7 @@ class RoomProxy: RoomProxyProtocol { private var backPaginationOutcome: PaginationOutcome? deinit { - room.removeTimeline() + slidingSyncRoom.removeTimeline() } init(slidingSyncRoom: SlidingSyncRoomProtocol, @@ -142,7 +142,7 @@ class RoomProxy: RoomProxyProtocol { } func addTimelineListener(listener: TimelineListener) { - room.addTimelineListener(listener: listener) + slidingSyncRoom.addTimelineListener(listener: listener) } func paginateBackwards(count: UInt) async -> Result {