Fixes #448 - Prevent room timelines from becoming stale if the room drops out of the sliding sync window

This commit is contained in:
Stefan Ceriu
2023-01-23 19:37:19 +02:00
committed by Stefan Ceriu
parent 9f865cf5c9
commit e8b48d4897
2 changed files with 2 additions and 1 deletions
@@ -141,7 +141,7 @@ class RoomProxy: RoomProxyProtocol {
}
func addTimelineListener(listener: TimelineListener) -> Result<Void, RoomProxyError> {
if let token = slidingSyncRoom.addTimelineListener(listener: listener) {
if let token = slidingSyncRoom.subscribeAndAddTimelineListener(listener: listener, settings: nil) {
timelineObservationToken = token
return .success(())
} else {
+1
View File
@@ -0,0 +1 @@
Prevent room timelines from becoming stale if the room drops out of the sliding sync window