Skip to content

Commit 8efbdc8

Browse files
committed
Bump to version 25.12.11 (matrix-rust-sdk/main 9a6acd5334870a570830930eb2a07707890f56e2)
1 parent ae9a08f commit 8efbdc8

File tree

2 files changed

+32
-2
lines changed

2 files changed

+32
-2
lines changed

Package.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
// swift-tools-version:5.9
22
// The swift-tools-version declares the minimum version of Swift required to build this package.
33
import PackageDescription
4-
let checksum = "c55635177ed444dae24f5d8e9e171cfdc264e055e39a298fd317ca3f0d006c29"
5-
let version = "25.12.10"
4+
let checksum = "ff5673afcd357175ef4158332b0e0a6a7a91c6bbf3b3e1792a58bc535e84fcfd"
5+
let version = "25.12.11"
66
let url = "https://github.com/element-hq/matrix-rust-components-swift/releases/download/\(version)/MatrixSDKFFI.xcframework.zip"
77
let package = Package(
88
name: "MatrixRustSDK",

Sources/MatrixRustSDK/matrix_sdk_ffi.swift

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12927,6 +12927,12 @@ public protocol SpaceServiceProtocol: AnyObject, Sendable {
1292712927
*/
1292812928
func editableSpaces() async -> [SpaceRoom]
1292912929

12930+
/**
12931+
* Returns the corresponding `SpaceRoom` for the given room ID, or `None`
12932+
* if it isn't known.
12933+
*/
12934+
func getSpaceRoom(roomId: String) async throws -> SpaceRoom?
12935+
1293012936
/**
1293112937
* Returns all known direct-parents of a given space room ID.
1293212938
*/
@@ -13066,6 +13072,27 @@ open func editableSpaces()async -> [SpaceRoom] {
1306613072
)
1306713073
}
1306813074

13075+
/**
13076+
* Returns the corresponding `SpaceRoom` for the given room ID, or `None`
13077+
* if it isn't known.
13078+
*/
13079+
open func getSpaceRoom(roomId: String)async throws -> SpaceRoom? {
13080+
return
13081+
try await uniffiRustCallAsync(
13082+
rustFutureFunc: {
13083+
uniffi_matrix_sdk_ffi_fn_method_spaceservice_get_space_room(
13084+
self.uniffiCloneHandle(),
13085+
FfiConverterString.lower(roomId)
13086+
)
13087+
},
13088+
pollFunc: ffi_matrix_sdk_ffi_rust_future_poll_rust_buffer,
13089+
completeFunc: ffi_matrix_sdk_ffi_rust_future_complete_rust_buffer,
13090+
freeFunc: ffi_matrix_sdk_ffi_rust_future_free_rust_buffer,
13091+
liftFunc: FfiConverterOptionTypeSpaceRoom.lift,
13092+
errorHandler: FfiConverterTypeClientError_lift
13093+
)
13094+
}
13095+
1306913096
/**
1307013097
* Returns all known direct-parents of a given space room ID.
1307113098
*/
@@ -47209,6 +47236,9 @@ private let initializationResult: InitializationResult = {
4720947236
if (uniffi_matrix_sdk_ffi_checksum_method_spaceservice_editable_spaces() != 1160) {
4721047237
return InitializationResult.apiChecksumMismatch
4721147238
}
47239+
if (uniffi_matrix_sdk_ffi_checksum_method_spaceservice_get_space_room() != 38097) {
47240+
return InitializationResult.apiChecksumMismatch
47241+
}
4721247242
if (uniffi_matrix_sdk_ffi_checksum_method_spaceservice_joined_parents_of_child() != 40037) {
4721347243
return InitializationResult.apiChecksumMismatch
4721447244
}

0 commit comments

Comments
 (0)