Skip to content

Commit

Permalink
Bump to v1.1.55 (matrix-rust-sdk/main f9ab073adfe412799be56feacb6e07d…
Browse files Browse the repository at this point in the history
…a9498c47e)
  • Loading branch information
pixlwave committed Apr 2, 2024
1 parent bfb73a4 commit 407ad3d
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@

import PackageDescription

let checksum = "5a170b60f0d5e659baa1dfea43a983b9d8a17180932ce1a08e4b9c8324746573"
let version = "v1.1.54"
let checksum = "aedf4a97b19b17757cbbb06ebcd2be48cc9f82f1fa2a39028d8b5783c43d41ad"
let version = "v1.1.55"
let url = "https://github.com/matrix-org/matrix-rust-components-swift/releases/download/\(version)/MatrixSDKFFI.xcframework.zip"

let package = Package(
Expand Down
43 changes: 43 additions & 0 deletions Sources/MatrixRustSDK/matrix_sdk_ffi.swift
Original file line number Diff line number Diff line change
Expand Up @@ -4102,6 +4102,10 @@ public protocol RoomProtocol : AnyObject {
*/
func markAsRead(receiptType: ReceiptType) async throws

func matrixToEventPermalink(eventId: String) async throws -> String

func matrixToPermalink() async throws -> String

func member(userId: String) async throws -> RoomMember

func memberAvatarUrl(userId: String) throws -> String?
Expand Down Expand Up @@ -4732,6 +4736,39 @@ open class Room:
}


open func matrixToEventPermalink(eventId: String) async throws -> String {
return try await uniffiRustCallAsync(
rustFutureFunc: {
uniffi_matrix_sdk_ffi_fn_method_room_matrix_to_event_permalink(
self.uniffiClonePointer(),
FfiConverterString.lower(eventId)
)
},
pollFunc: ffi_matrix_sdk_ffi_rust_future_poll_rust_buffer,
completeFunc: ffi_matrix_sdk_ffi_rust_future_complete_rust_buffer,
freeFunc: ffi_matrix_sdk_ffi_rust_future_free_rust_buffer,
liftFunc: FfiConverterString.lift,
errorHandler: FfiConverterTypeClientError.lift
)
}


open func matrixToPermalink() async throws -> String {
return try await uniffiRustCallAsync(
rustFutureFunc: {
uniffi_matrix_sdk_ffi_fn_method_room_matrix_to_permalink(
self.uniffiClonePointer()
)
},
pollFunc: ffi_matrix_sdk_ffi_rust_future_poll_rust_buffer,
completeFunc: ffi_matrix_sdk_ffi_rust_future_complete_rust_buffer,
freeFunc: ffi_matrix_sdk_ffi_rust_future_free_rust_buffer,
liftFunc: FfiConverterString.lift,
errorHandler: FfiConverterTypeClientError.lift
)
}


open func member(userId: String) async throws -> RoomMember {
return try await uniffiRustCallAsync(
rustFutureFunc: {
Expand Down Expand Up @@ -23533,6 +23570,12 @@ private var initializationResult: InitializationResult {
if (uniffi_matrix_sdk_ffi_checksum_method_room_mark_as_read() != 43726) {
return InitializationResult.apiChecksumMismatch
}
if (uniffi_matrix_sdk_ffi_checksum_method_room_matrix_to_event_permalink() != 14417) {
return InitializationResult.apiChecksumMismatch
}
if (uniffi_matrix_sdk_ffi_checksum_method_room_matrix_to_permalink() != 47781) {
return InitializationResult.apiChecksumMismatch
}
if (uniffi_matrix_sdk_ffi_checksum_method_room_member() != 53375) {
return InitializationResult.apiChecksumMismatch
}
Expand Down

0 comments on commit 407ad3d

Please sign in to comment.