From d38cf8f989f148b622ac53f5fa3acceb7407bbde Mon Sep 17 00:00:00 2001 From: Stefan Ceriu Date: Mon, 22 May 2023 18:38:25 +0300 Subject: [PATCH] Bump the RustSDK to v1.0.66-alpha --- ElementX.xcodeproj/project.pbxproj | 2 +- .../xcshareddata/swiftpm/Package.resolved | 4 ++-- ElementX/Sources/Services/Client/ClientProxy.swift | 11 ++++------- project.yml | 2 +- 4 files changed, 8 insertions(+), 11 deletions(-) diff --git a/ElementX.xcodeproj/project.pbxproj b/ElementX.xcodeproj/project.pbxproj index a801a0366..62d98ed33 100644 --- a/ElementX.xcodeproj/project.pbxproj +++ b/ElementX.xcodeproj/project.pbxproj @@ -4621,7 +4621,7 @@ repositoryURL = "https://github.com/matrix-org/matrix-rust-components-swift"; requirement = { kind = exactVersion; - version = "1.0.65-alpha"; + version = "1.0.66-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 739da233c..899cd7cd7 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" : "937bd40d601b59d676c18e466fd111925e498799", - "version" : "1.0.65-alpha" + "revision" : "1da413f836e4c7e4ef9c097b55bd07794abbb596", + "version" : "1.0.66-alpha" } }, { diff --git a/ElementX/Sources/Services/Client/ClientProxy.swift b/ElementX/Sources/Services/Client/ClientProxy.swift index 22e623df8..45f68d262 100644 --- a/ElementX/Sources/Services/Client/ClientProxy.swift +++ b/ElementX/Sources/Services/Client/ClientProxy.swift @@ -439,7 +439,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) - .syncMode(mode: .selective) + .syncModeSelective() .addRange(from: 0, toIncluded: 20) .onceBuilt(callback: visibleRoomsListProxy) @@ -471,8 +471,7 @@ class ClientProxy: ClientProxyProtocol { .noTimelineLimit() .requiredState(requiredState: slidingSyncRequiredState) .filters(filters: slidingSyncFilters) - .syncMode(mode: .growing) - .batchSize(batchSize: 100) + .syncModeGrowing(batchSize: 100, maximumNumberOfRoomsToFetch: nil) .onceBuilt(callback: allRoomsListProxy) self.allRoomsListBuilder = allRoomsListBuilder @@ -492,8 +491,7 @@ class ClientProxy: ClientProxyProtocol { .noTimelineLimit() .requiredState(requiredState: slidingSyncInvitesRequiredState) .filters(filters: slidingSyncInviteFilters) - .syncMode(mode: .growing) - .batchSize(batchSize: 100) + .syncModeGrowing(batchSize: 100, maximumNumberOfRoomsToFetch: nil) .onceBuilt(callback: invitesListProxy) self.invitesListBuilder = invitesListBuilder @@ -509,8 +507,7 @@ class ClientProxy: ClientProxyProtocol { .noTimelineLimit() .requiredState(requiredState: slidingSyncNotificationsRequiredState) .filters(filters: slidingSyncNotificationsFilters) - .syncMode(mode: .growing) - .batchSize(batchSize: 100) + .syncModeGrowing(batchSize: 100, maximumNumberOfRoomsToFetch: nil) self.notificationsListBuilder = notificationsListBuilder } diff --git a/project.yml b/project.yml index b8bf56388..fa64186e4 100644 --- a/project.yml +++ b/project.yml @@ -42,7 +42,7 @@ include: packages: MatrixRustSDK: url: https://github.com/matrix-org/matrix-rust-components-swift - exactVersion: 1.0.65-alpha + exactVersion: 1.0.66-alpha # path: ../matrix-rust-sdk DesignKit: path: DesignKit