diff --git a/ElementX.xcodeproj/project.pbxproj b/ElementX.xcodeproj/project.pbxproj index 37ab005de..84e1d897c 100644 --- a/ElementX.xcodeproj/project.pbxproj +++ b/ElementX.xcodeproj/project.pbxproj @@ -4778,7 +4778,7 @@ repositoryURL = "https://github.com/matrix-org/matrix-rust-components-swift"; requirement = { kind = exactVersion; - version = "1.0.69-alpha"; + version = "1.0.71-alpha"; }; }; 96495DD8554E2F39D3954354 /* XCRemoteSwiftPackageReference "posthog-ios" */ = { diff --git a/ElementX.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved b/ElementX.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved index cccfe8405..e88819249 100644 --- a/ElementX.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved +++ b/ElementX.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved @@ -102,8 +102,8 @@ "kind" : "remoteSourceControl", "location" : "https://github.com/matrix-org/matrix-rust-components-swift", "state" : { - "revision" : "05f956572eae1491ea3a096bec24d51e90975bc9", - "version" : "1.0.69-alpha" + "revision" : "3cd19bf79bd89b71477642a1d2172f3ee48b44ef", + "version" : "1.0.71-alpha" } }, { @@ -172,7 +172,7 @@ { "identity" : "swift-snapshot-testing", "kind" : "remoteSourceControl", - "location" : "https://github.com/pointfreeco/swift-snapshot-testing", + "location" : "https://github.com/pointfreeco/swift-snapshot-testing.git", "state" : { "revision" : "cef5b3f6f11781dd4591bdd1dd0a3d22bd609334", "version" : "1.11.0" diff --git a/ElementX/Sources/Services/Client/ClientProxy.swift b/ElementX/Sources/Services/Client/ClientProxy.swift index 37ef68e52..f998df425 100644 --- a/ElementX/Sources/Services/Client/ClientProxy.swift +++ b/ElementX/Sources/Services/Client/ClientProxy.swift @@ -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 diff --git a/ElementX/Sources/Services/Client/SlidingSyncListProxy.swift b/ElementX/Sources/Services/Client/SlidingSyncListProxy.swift index 1eb6ffa04..a7803a180 100644 --- a/ElementX/Sources/Services/Client/SlidingSyncListProxy.swift +++ b/ElementX/Sources/Services/Client/SlidingSyncListProxy.swift @@ -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 { diff --git a/project.yml b/project.yml index 6ff146bd1..db18b3ef5 100644 --- a/project.yml +++ b/project.yml @@ -43,7 +43,7 @@ include: packages: MatrixRustSDK: url: https://github.com/matrix-org/matrix-rust-components-swift - exactVersion: 1.0.69-alpha + exactVersion: 1.0.71-alpha # path: ../matrix-rust-sdk DesignKit: path: DesignKit