mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-03 16:10:20 +00:00
Switch to the sliding sync room for working with the timeline
This commit is contained in:
committed by
Stefan Ceriu
parent
92b22e19e2
commit
cee628e651
@@ -37,7 +37,7 @@ class RoomProxy: RoomProxyProtocol {
|
|||||||
private var backPaginationOutcome: PaginationOutcome?
|
private var backPaginationOutcome: PaginationOutcome?
|
||||||
|
|
||||||
deinit {
|
deinit {
|
||||||
room.removeTimeline()
|
slidingSyncRoom.removeTimeline()
|
||||||
}
|
}
|
||||||
|
|
||||||
init(slidingSyncRoom: SlidingSyncRoomProtocol,
|
init(slidingSyncRoom: SlidingSyncRoomProtocol,
|
||||||
@@ -142,7 +142,7 @@ class RoomProxy: RoomProxyProtocol {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func addTimelineListener(listener: TimelineListener) {
|
func addTimelineListener(listener: TimelineListener) {
|
||||||
room.addTimelineListener(listener: listener)
|
slidingSyncRoom.addTimelineListener(listener: listener)
|
||||||
}
|
}
|
||||||
|
|
||||||
func paginateBackwards(count: UInt) async -> Result<Void, RoomProxyError> {
|
func paginateBackwards(count: UInt) async -> Result<Void, RoomProxyError> {
|
||||||
|
|||||||
Reference in New Issue
Block a user