mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-03 16:10:20 +00:00
Prevent the TimelineController from requesting a backpagination even though items are available on the TimelineProvider level. Manually populate the items subject in the TimelineProvider constructor.
This commit is contained in:
@@ -39,6 +39,9 @@ class RoomTimelineProvider: RoomTimelineProviderProtocol {
|
||||
|
||||
itemProxies = currentItems.map(TimelineItemProxy.init)
|
||||
|
||||
// Manually call it here as the didSet doesn't work from constructors
|
||||
itemsSubject.send(itemProxies)
|
||||
|
||||
updatePublisher
|
||||
.collect(.byTime(serialDispatchQueue, 0.1))
|
||||
.sink { [weak self] in self?.updateItemsWithDiffs($0) }
|
||||
|
||||
Reference in New Issue
Block a user