@@ -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