From 041a21e65dbcc92e582f97d39897939d7bd35145 Mon Sep 17 00:00:00 2001 From: Stefan Ceriu Date: Mon, 23 Jan 2023 19:37:19 +0200 Subject: [PATCH] Fixes #448 - Prevent room timelines from becoming stale if the room drops out of the sliding sync window --- ElementX/Sources/Services/Room/RoomProxy.swift | 2 +- changelog.d/448.bugfix | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 changelog.d/448.bugfix diff --git a/ElementX/Sources/Services/Room/RoomProxy.swift b/ElementX/Sources/Services/Room/RoomProxy.swift index 661a26628..1a7596c80 100644 --- a/ElementX/Sources/Services/Room/RoomProxy.swift +++ b/ElementX/Sources/Services/Room/RoomProxy.swift @@ -141,7 +141,7 @@ class RoomProxy: RoomProxyProtocol { } func addTimelineListener(listener: TimelineListener) -> Result { - if let token = slidingSyncRoom.addTimelineListener(listener: listener) { + if let token = slidingSyncRoom.subscribeAndAddTimelineListener(listener: listener, settings: nil) { timelineObservationToken = token return .success(()) } else { diff --git a/changelog.d/448.bugfix b/changelog.d/448.bugfix new file mode 100644 index 000000000..04724e65d --- /dev/null +++ b/changelog.d/448.bugfix @@ -0,0 +1 @@ +Prevent room timelines from becoming stale if the room drops out of the sliding sync window \ No newline at end of file