mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-04 01:20:12 +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)
|
itemProxies = currentItems.map(TimelineItemProxy.init)
|
||||||
|
|
||||||
|
// Manually call it here as the didSet doesn't work from constructors
|
||||||
|
itemsSubject.send(itemProxies)
|
||||||
|
|
||||||
updatePublisher
|
updatePublisher
|
||||||
.collect(.byTime(serialDispatchQueue, 0.1))
|
.collect(.byTime(serialDispatchQueue, 0.1))
|
||||||
.sink { [weak self] in self?.updateItemsWithDiffs($0) }
|
.sink { [weak self] in self?.updateItemsWithDiffs($0) }
|
||||||
|
|||||||
Reference in New Issue
Block a user