Skip to content

Commit 1d47d49

Browse files
committed
Bump to v1.1.56 (matrix-rust-sdk/main 682c17c9d8eec64b3e88b19d7cd414ad71d3ebc1)
1 parent 407ad3d commit 1d47d49

File tree

2 files changed

+45
-2
lines changed

2 files changed

+45
-2
lines changed

Package.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33

44
import PackageDescription
55

6-
let checksum = "aedf4a97b19b17757cbbb06ebcd2be48cc9f82f1fa2a39028d8b5783c43d41ad"
7-
let version = "v1.1.55"
6+
let checksum = "8250ca186bbf106e435a910afdb612bc75ca4e83413b7e16897fa8ce7f2be524"
7+
let version = "v1.1.56"
88
let url = "https://github.com/matrix-org/matrix-rust-components-swift/releases/download/\(version)/MatrixSDKFFI.xcframework.zip"
99

1010
let package = Package(

Sources/MatrixRustSDK/matrix_sdk_ffi.swift

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -806,6 +806,8 @@ public protocol ClientProtocol : AnyObject {
806806

807807
func getProfile(userId: String) throws -> UserProfile
808808

809+
func getRecentlyVisitedRooms() async throws -> [String]
810+
809811
func getSessionVerificationController() throws -> SessionVerificationController
810812

811813
/**
@@ -868,6 +870,8 @@ public protocol ClientProtocol : AnyObject {
868870

869871
func syncService() -> SyncServiceBuilder
870872

873+
func trackRecentlyVisitedRoom(room: String) async throws
874+
871875
func unignoreUser(userId: String) async throws
872876

873877
func uploadAvatar(mimeType: String, data: Data) throws
@@ -1108,6 +1112,22 @@ open class Client:
11081112
}
11091113
)
11101114
}
1115+
open func getRecentlyVisitedRooms() async throws -> [String] {
1116+
return try await uniffiRustCallAsync(
1117+
rustFutureFunc: {
1118+
uniffi_matrix_sdk_ffi_fn_method_client_get_recently_visited_rooms(
1119+
self.uniffiClonePointer()
1120+
)
1121+
},
1122+
pollFunc: ffi_matrix_sdk_ffi_rust_future_poll_rust_buffer,
1123+
completeFunc: ffi_matrix_sdk_ffi_rust_future_complete_rust_buffer,
1124+
freeFunc: ffi_matrix_sdk_ffi_rust_future_free_rust_buffer,
1125+
liftFunc: FfiConverterSequenceString.lift,
1126+
errorHandler: FfiConverterTypeClientError.lift
1127+
)
1128+
}
1129+
1130+
11111131
open func getSessionVerificationController() throws -> SessionVerificationController {
11121132
return try FfiConverterTypeSessionVerificationController.lift(
11131133
try
@@ -1355,6 +1375,23 @@ open class Client:
13551375
}
13561376
)
13571377
}
1378+
open func trackRecentlyVisitedRoom(room: String) async throws {
1379+
return try await uniffiRustCallAsync(
1380+
rustFutureFunc: {
1381+
uniffi_matrix_sdk_ffi_fn_method_client_track_recently_visited_room(
1382+
self.uniffiClonePointer(),
1383+
FfiConverterString.lower(room)
1384+
)
1385+
},
1386+
pollFunc: ffi_matrix_sdk_ffi_rust_future_poll_void,
1387+
completeFunc: ffi_matrix_sdk_ffi_rust_future_complete_void,
1388+
freeFunc: ffi_matrix_sdk_ffi_rust_future_free_void,
1389+
liftFunc: { $0 },
1390+
errorHandler: FfiConverterTypeClientError.lift
1391+
)
1392+
}
1393+
1394+
13581395
open func unignoreUser(userId: String) async throws {
13591396
return try await uniffiRustCallAsync(
13601397
rustFutureFunc: {
@@ -23150,6 +23187,9 @@ private var initializationResult: InitializationResult {
2315023187
if (uniffi_matrix_sdk_ffi_checksum_method_client_get_profile() != 54768) {
2315123188
return InitializationResult.apiChecksumMismatch
2315223189
}
23190+
if (uniffi_matrix_sdk_ffi_checksum_method_client_get_recently_visited_rooms() != 22399) {
23191+
return InitializationResult.apiChecksumMismatch
23192+
}
2315323193
if (uniffi_matrix_sdk_ffi_checksum_method_client_get_session_verification_controller() != 62335) {
2315423194
return InitializationResult.apiChecksumMismatch
2315523195
}
@@ -23210,6 +23250,9 @@ private var initializationResult: InitializationResult {
2321023250
if (uniffi_matrix_sdk_ffi_checksum_method_client_sync_service() != 52812) {
2321123251
return InitializationResult.apiChecksumMismatch
2321223252
}
23253+
if (uniffi_matrix_sdk_ffi_checksum_method_client_track_recently_visited_room() != 37070) {
23254+
return InitializationResult.apiChecksumMismatch
23255+
}
2321323256
if (uniffi_matrix_sdk_ffi_checksum_method_client_unignore_user() != 9349) {
2321423257
return InitializationResult.apiChecksumMismatch
2321523258
}

0 commit comments

Comments
 (0)