mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-04 10:33:45 +00:00
Reduced RoomSummaryProvider and RoomTimelineProvider throttle delay
Reduced RoomSummaryProvider throttle delay and disable the RoomTimelineProvider one entirely
This commit is contained in:
committed by
Stefan Ceriu
parent
e928df8664
commit
8647152980
@@ -97,7 +97,7 @@ class RoomSummaryProvider: RoomSummaryProviderProtocol {
|
|||||||
.store(in: &cancellables)
|
.store(in: &cancellables)
|
||||||
|
|
||||||
weakProvider.roomListDiffPublisher
|
weakProvider.roomListDiffPublisher
|
||||||
.collect(.byTime(DispatchQueue.global(), 0.5))
|
.collect(.byTime(DispatchQueue.global(), 0.25))
|
||||||
.sink { self.updateRoomsWithDiffs($0) }
|
.sink { self.updateRoomsWithDiffs($0) }
|
||||||
.store(in: &cancellables)
|
.store(in: &cancellables)
|
||||||
|
|
||||||
|
|||||||
@@ -53,7 +53,7 @@ class RoomTimelineProvider: RoomTimelineProviderProtocol {
|
|||||||
|
|
||||||
roomTimelineListener
|
roomTimelineListener
|
||||||
.itemsUpdatePublisher
|
.itemsUpdatePublisher
|
||||||
.collect(.byTime(DispatchQueue.global(), 0.5))
|
.collect(.byTime(DispatchQueue.global(), 0.25))
|
||||||
.sink { self.updateItemsWithDiffs($0) }
|
.sink { self.updateItemsWithDiffs($0) }
|
||||||
.store(in: &cancellables)
|
.store(in: &cancellables)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user