@@ -2427,7 +2427,7 @@ public func FfiConverterTypeNotificationSettings_lower(_ value: NotificationSett
24272427
24282428public protocol RoomProtocol {
24292429 func `activeMembersCount`() -> UInt64
2430- func `addTimelineListener`(`listener`: TimelineListener) async -> RoomTimelineListenerResult
2430+ func `addTimelineListener`(`listener`: TimelineListener) -> RoomTimelineListenerResult
24312431 func `alternativeAliases`() -> [String]
24322432 func `avatarUrl`() -> String?
24332433 func `canUserBan`(`userId`: String) async throws -> Bool
@@ -2519,30 +2519,17 @@ public class Room: RoomProtocol {
25192519 )
25202520 }
25212521
2522- public func `addTimelineListener`(`listener`: TimelineListener) async -> RoomTimelineListenerResult {
2523- // Suspend the function and call the scaffolding function, passing it a callback handler from
2524- // `AsyncTypes.swift`
2525- //
2526- // Make sure to hold on to a reference to the continuation in the top-level scope so that
2527- // it's not freed before the callback is invoked.
2528- var continuation: CheckedContinuation<RoomTimelineListenerResult, Error>? = nil
2529- return try! await withCheckedThrowingContinuation {
2530- continuation = $0
2531- try! rustCall() {
2532- uniffi_matrix_sdk_ffi_fn_method_room_add_timeline_listener(
2533- self.pointer,
2534-
2535- FfiConverterCallbackInterfaceTimelineListener.lower(`listener`),
2536- FfiConverterForeignExecutor.lower(UniFfiForeignExecutor()),
2537- uniffiFutureCallbackHandlerTypeRoomTimelineListenerResult,
2538- &continuation,
2539- $0
2540- )
2541- }
2542- }
2543- }
2544-
2522+ public func `addTimelineListener`(`listener`: TimelineListener) -> RoomTimelineListenerResult {
2523+ return try! FfiConverterTypeRoomTimelineListenerResult.lift(
2524+ try!
2525+ rustCall() {
25452526
2527+ uniffi_matrix_sdk_ffi_fn_method_room_add_timeline_listener(self.pointer,
2528+ FfiConverterCallbackInterfaceTimelineListener.lower(`listener`),$0
2529+ )
2530+ }
2531+ )
2532+ }
25462533
25472534 public func `alternativeAliases`() -> [String] {
25482535 return try! FfiConverterSequenceString.lift(
@@ -4119,7 +4106,7 @@ public func FfiConverterTypeRoomMessageEventContent_lower(_ value: RoomMessageEv
41194106
41204107public protocol SendAttachmentJoinHandleProtocol {
41214108 func `cancel`()
4122- func `join`() async throws
4109+ func `join`() throws
41234110
41244111}
41254112
@@ -4151,29 +4138,13 @@ public class SendAttachmentJoinHandle: SendAttachmentJoinHandleProtocol {
41514138}
41524139 }
41534140
4154- public func `join`() async throws {
4155- // Suspend the function and call the scaffolding function, passing it a callback handler from
4156- // `AsyncTypes.swift`
4157- //
4158- // Make sure to hold on to a reference to the continuation in the top-level scope so that
4159- // it's not freed before the callback is invoked.
4160- var continuation: CheckedContinuation<(), Error>? = nil
4161- return try await withCheckedThrowingContinuation {
4162- continuation = $0
4163- try! rustCall() {
4164- uniffi_matrix_sdk_ffi_fn_method_sendattachmentjoinhandle_join(
4165- self.pointer,
4166-
4167- FfiConverterForeignExecutor.lower(UniFfiForeignExecutor()),
4168- uniffiFutureCallbackHandlerVoidTypeRoomError,
4169- &continuation,
4170- $0
4171- )
4172- }
4173- }
4141+ public func `join`() throws {
4142+ try
4143+ rustCallWithError(FfiConverterTypeRoomError.lift) {
4144+ uniffi_matrix_sdk_ffi_fn_method_sendattachmentjoinhandle_join(self.pointer, $0
4145+ )
4146+ }
41744147 }
4175-
4176-
41774148}
41784149
41794150public struct FfiConverterTypeSendAttachmentJoinHandle: FfiConverter {
@@ -15578,7 +15549,7 @@ private var initializationResult: InitializationResult {
1557815549 if (uniffi_matrix_sdk_ffi_checksum_method_room_active_members_count() != 62367) {
1557915550 return InitializationResult.apiChecksumMismatch
1558015551 }
15581- if (uniffi_matrix_sdk_ffi_checksum_method_room_add_timeline_listener() != 43137 ) {
15552+ if (uniffi_matrix_sdk_ffi_checksum_method_room_add_timeline_listener() != 2158 ) {
1558215553 return InitializationResult.apiChecksumMismatch
1558315554 }
1558415555 if (uniffi_matrix_sdk_ffi_checksum_method_room_alternative_aliases() != 25219) {
@@ -15869,7 +15840,7 @@ private var initializationResult: InitializationResult {
1586915840 if (uniffi_matrix_sdk_ffi_checksum_method_sendattachmentjoinhandle_cancel() != 58929) {
1587015841 return InitializationResult.apiChecksumMismatch
1587115842 }
15872- if (uniffi_matrix_sdk_ffi_checksum_method_sendattachmentjoinhandle_join() != 25237 ) {
15843+ if (uniffi_matrix_sdk_ffi_checksum_method_sendattachmentjoinhandle_join() != 31788 ) {
1587315844 return InitializationResult.apiChecksumMismatch
1587415845 }
1587515846 if (uniffi_matrix_sdk_ffi_checksum_method_sessionverificationcontroller_approve_verification() != 468) {
0 commit comments