mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-04 19:44:05 +00:00
Prevent the timeline from jumping whenever a room is entered
- caused by https://github.com/matrix-org/matrix-rust-sdk/issues/2488 - rolled back to a solution similar to what we had before
This commit is contained in:
committed by
Stefan Ceriu
parent
c1593f28c9
commit
dbee85a929
@@ -99,6 +99,10 @@ class RoomProxy: RoomProxyProtocol {
|
|||||||
|
|
||||||
let timelineListener = RoomTimelineListener { [weak self] timelineDiffs in
|
let timelineListener = RoomTimelineListener { [weak self] timelineDiffs in
|
||||||
self?.timelineUpdatesSubject.send(timelineDiffs)
|
self?.timelineUpdatesSubject.send(timelineDiffs)
|
||||||
|
|
||||||
|
// Workaround for subscribeToRoomStateUpdates creating problems in the timeline
|
||||||
|
// https://github.com/matrix-org/matrix-rust-sdk/issues/2488
|
||||||
|
self?.stateUpdatesSubject.send()
|
||||||
}
|
}
|
||||||
|
|
||||||
self.timelineListener = timelineListener
|
self.timelineListener = timelineListener
|
||||||
@@ -108,7 +112,7 @@ class RoomProxy: RoomProxyProtocol {
|
|||||||
|
|
||||||
subscribeToBackpagination()
|
subscribeToBackpagination()
|
||||||
|
|
||||||
subscribeToRoomStateUpdates()
|
// subscribeToRoomStateUpdates()
|
||||||
|
|
||||||
innerTimelineProvider = await RoomTimelineProvider(currentItems: result.items,
|
innerTimelineProvider = await RoomTimelineProvider(currentItems: result.items,
|
||||||
updatePublisher: timelineUpdatesSubject.eraseToAnyPublisher(),
|
updatePublisher: timelineUpdatesSubject.eraseToAnyPublisher(),
|
||||||
|
|||||||
Reference in New Issue
Block a user