mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-02 21:33:26 +00:00
Bump the RustSDK to v1.0.71-alpha, adopt latest sliding sync range API
This commit is contained in:
committed by
Stefan Ceriu
parent
6b6ea118e2
commit
30c39130fc
@@ -466,8 +466,7 @@ class ClientProxy: ClientProxyProtocol {
|
||||
.timelineLimit(limit: UInt32(SlidingSyncConstants.initialTimelineLimit)) // Starts off with zero to quickly load rooms, then goes to 1 while scrolling to quickly load last messages and 20 when the scrolling stops to load room history
|
||||
.requiredState(requiredState: slidingSyncRequiredState)
|
||||
.filters(filters: slidingSyncFilters)
|
||||
.syncModeSelective()
|
||||
.addRange(from: 0, toIncluded: 20)
|
||||
.syncModeSelective(selectiveModeBuilder: .init().addRange(start: 0, endInclusive: 20))
|
||||
.onceBuilt(callback: visibleRoomsListProxy)
|
||||
|
||||
self.visibleRoomsListBuilder = visibleRoomsListBuilder
|
||||
|
||||
@@ -105,7 +105,7 @@ class SlidingSyncListProxy: SlidingSyncListOnceBuilt {
|
||||
do {
|
||||
if let range {
|
||||
MXLog.info("Setting '\(name)' list range to \(range)")
|
||||
try slidingSyncList?.setRange(start: UInt32(range.lowerBound), end: UInt32(range.upperBound))
|
||||
try slidingSyncList?.setSyncMode(builder: .init().addRange(start: UInt32(range.lowerBound), endInclusive: UInt32(range.upperBound)))
|
||||
}
|
||||
|
||||
if let timelineLimit {
|
||||
|
||||
Reference in New Issue
Block a user