Skip to content

Commit

Permalink
Bump the RustSDK to v1.0.66-alpha
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanceriu committed May 22, 2023
1 parent 3ff61f5 commit d38cf8f
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 11 deletions.
2 changes: 1 addition & 1 deletion ElementX.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -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" */ = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
},
{
Expand Down
11 changes: 4 additions & 7 deletions ElementX/Sources/Services/Client/ClientProxy.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
}
Expand Down
2 changes: 1 addition & 1 deletion project.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d38cf8f

Please sign in to comment.