mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-03 16:10:20 +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
|
||||
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
|
||||
@@ -108,7 +112,7 @@ class RoomProxy: RoomProxyProtocol {
|
||||
|
||||
subscribeToBackpagination()
|
||||
|
||||
subscribeToRoomStateUpdates()
|
||||
// subscribeToRoomStateUpdates()
|
||||
|
||||
innerTimelineProvider = await RoomTimelineProvider(currentItems: result.items,
|
||||
updatePublisher: timelineUpdatesSubject.eraseToAnyPublisher(),
|
||||
|
||||
Reference in New Issue
Block a user