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