mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-03 16:10:20 +00:00
Fixes #448 - Prevent room timelines from becoming stale if the room drops out of the sliding sync window
This commit is contained in:
committed by
Stefan Ceriu
parent
9f865cf5c9
commit
e8b48d4897
@@ -141,7 +141,7 @@ class RoomProxy: RoomProxyProtocol {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func addTimelineListener(listener: TimelineListener) -> Result<Void, RoomProxyError> {
|
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
|
timelineObservationToken = token
|
||||||
return .success(())
|
return .success(())
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@@ -0,0 +1 @@
|
|||||||
|
Prevent room timelines from becoming stale if the room drops out of the sliding sync window
|
||||||
Reference in New Issue
Block a user