Skip to content

Commit 407ad3d

Browse files
committed
Bump to v1.1.55 (matrix-rust-sdk/main f9ab073adfe412799be56feacb6e07da9498c47e)
1 parent bfb73a4 commit 407ad3d

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 = "5a170b60f0d5e659baa1dfea43a983b9d8a17180932ce1a08e4b9c8324746573"
7-
let version = "v1.1.54"
6+
let checksum = "aedf4a97b19b17757cbbb06ebcd2be48cc9f82f1fa2a39028d8b5783c43d41ad"
7+
let version = "v1.1.55"
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
@@ -4102,6 +4102,10 @@ public protocol RoomProtocol : AnyObject {
41024102
*/
41034103
func markAsRead(receiptType: ReceiptType) async throws
41044104

4105+
func matrixToEventPermalink(eventId: String) async throws -> String
4106+
4107+
func matrixToPermalink() async throws -> String
4108+
41054109
func member(userId: String) async throws -> RoomMember
41064110

41074111
func memberAvatarUrl(userId: String) throws -> String?
@@ -4732,6 +4736,39 @@ open class Room:
47324736
}
47334737

47344738

4739+
open func matrixToEventPermalink(eventId: String) async throws -> String {
4740+
return try await uniffiRustCallAsync(
4741+
rustFutureFunc: {
4742+
uniffi_matrix_sdk_ffi_fn_method_room_matrix_to_event_permalink(
4743+
self.uniffiClonePointer(),
4744+
FfiConverterString.lower(eventId)
4745+
)
4746+
},
4747+
pollFunc: ffi_matrix_sdk_ffi_rust_future_poll_rust_buffer,
4748+
completeFunc: ffi_matrix_sdk_ffi_rust_future_complete_rust_buffer,
4749+
freeFunc: ffi_matrix_sdk_ffi_rust_future_free_rust_buffer,
4750+
liftFunc: FfiConverterString.lift,
4751+
errorHandler: FfiConverterTypeClientError.lift
4752+
)
4753+
}
4754+
4755+
4756+
open func matrixToPermalink() async throws -> String {
4757+
return try await uniffiRustCallAsync(
4758+
rustFutureFunc: {
4759+
uniffi_matrix_sdk_ffi_fn_method_room_matrix_to_permalink(
4760+
self.uniffiClonePointer()
4761+
)
4762+
},
4763+
pollFunc: ffi_matrix_sdk_ffi_rust_future_poll_rust_buffer,
4764+
completeFunc: ffi_matrix_sdk_ffi_rust_future_complete_rust_buffer,
4765+
freeFunc: ffi_matrix_sdk_ffi_rust_future_free_rust_buffer,
4766+
liftFunc: FfiConverterString.lift,
4767+
errorHandler: FfiConverterTypeClientError.lift
4768+
)
4769+
}
4770+
4771+
47354772
open func member(userId: String) async throws -> RoomMember {
47364773
return try await uniffiRustCallAsync(
47374774
rustFutureFunc: {
@@ -23533,6 +23570,12 @@ private var initializationResult: InitializationResult {
2353323570
if (uniffi_matrix_sdk_ffi_checksum_method_room_mark_as_read() != 43726) {
2353423571
return InitializationResult.apiChecksumMismatch
2353523572
}
23573+
if (uniffi_matrix_sdk_ffi_checksum_method_room_matrix_to_event_permalink() != 14417) {
23574+
return InitializationResult.apiChecksumMismatch
23575+
}
23576+
if (uniffi_matrix_sdk_ffi_checksum_method_room_matrix_to_permalink() != 47781) {
23577+
return InitializationResult.apiChecksumMismatch
23578+
}
2353623579
if (uniffi_matrix_sdk_ffi_checksum_method_room_member() != 53375) {
2353723580
return InitializationResult.apiChecksumMismatch
2353823581
}

0 commit comments

Comments
 (0)