@@ -2108,6 +2108,8 @@ internal open class UniffiVTableCallbackInterfaceWidgetCapabilitiesProvider(
2108
2108
2109
2109
2110
2110
2111
+
2112
+
2111
2113
2112
2114
2113
2115
@@ -2435,6 +2437,8 @@ internal interface UniffiLib : Library {
2435
2437
): Unit
2436
2438
fun uniffi_matrix_sdk_ffi_fn_method_identityresethandle_auth_type(`ptr`: Pointer,uniffi_out_err: UniffiRustCallStatus,
2437
2439
): RustBuffer.ByValue
2440
+ fun uniffi_matrix_sdk_ffi_fn_method_identityresethandle_cancel(`ptr`: Pointer,
2441
+ ): Long
2438
2442
fun uniffi_matrix_sdk_ffi_fn_method_identityresethandle_reset(`ptr`: Pointer,`auth`: RustBuffer.ByValue,
2439
2443
): Long
2440
2444
fun uniffi_matrix_sdk_ffi_fn_clone_mediafilehandle(`ptr`: Pointer,uniffi_out_err: UniffiRustCallStatus,
@@ -2743,8 +2747,6 @@ internal interface UniffiLib : Library {
2743
2747
): Long
2744
2748
fun uniffi_matrix_sdk_ffi_fn_method_roomlistitem_room_info(`ptr`: Pointer,
2745
2749
): Long
2746
- fun uniffi_matrix_sdk_ffi_fn_method_roomlistitem_subscribe(`ptr`: Pointer,`settings`: RustBuffer.ByValue,uniffi_out_err: UniffiRustCallStatus,
2747
- ): Unit
2748
2750
fun uniffi_matrix_sdk_ffi_fn_clone_roomlistservice(`ptr`: Pointer,uniffi_out_err: UniffiRustCallStatus,
2749
2751
): Pointer
2750
2752
fun uniffi_matrix_sdk_ffi_fn_free_roomlistservice(`ptr`: Pointer,uniffi_out_err: UniffiRustCallStatus,
@@ -2755,6 +2757,8 @@ internal interface UniffiLib : Library {
2755
2757
): Pointer
2756
2758
fun uniffi_matrix_sdk_ffi_fn_method_roomlistservice_state(`ptr`: Pointer,`listener`: Long,uniffi_out_err: UniffiRustCallStatus,
2757
2759
): Pointer
2760
+ fun uniffi_matrix_sdk_ffi_fn_method_roomlistservice_subscribe_to_rooms(`ptr`: Pointer,`roomIds`: RustBuffer.ByValue,`settings`: RustBuffer.ByValue,uniffi_out_err: UniffiRustCallStatus,
2761
+ ): Unit
2758
2762
fun uniffi_matrix_sdk_ffi_fn_method_roomlistservice_sync_indicator(`ptr`: Pointer,`delayBeforeShowingInMs`: Int,`delayBeforeHidingInMs`: Int,`listener`: Long,uniffi_out_err: UniffiRustCallStatus,
2759
2763
): Pointer
2760
2764
fun uniffi_matrix_sdk_ffi_fn_clone_roommembersiterator(`ptr`: Pointer,uniffi_out_err: UniffiRustCallStatus,
@@ -3489,6 +3493,8 @@ internal interface UniffiLib : Library {
3489
3493
): Short
3490
3494
fun uniffi_matrix_sdk_ffi_checksum_method_identityresethandle_auth_type(
3491
3495
): Short
3496
+ fun uniffi_matrix_sdk_ffi_checksum_method_identityresethandle_cancel(
3497
+ ): Short
3492
3498
fun uniffi_matrix_sdk_ffi_checksum_method_identityresethandle_reset(
3493
3499
): Short
3494
3500
fun uniffi_matrix_sdk_ffi_checksum_method_mediafilehandle_path(
@@ -3751,14 +3757,14 @@ internal interface UniffiLib : Library {
3751
3757
): Short
3752
3758
fun uniffi_matrix_sdk_ffi_checksum_method_roomlistitem_room_info(
3753
3759
): Short
3754
- fun uniffi_matrix_sdk_ffi_checksum_method_roomlistitem_subscribe(
3755
- ): Short
3756
3760
fun uniffi_matrix_sdk_ffi_checksum_method_roomlistservice_all_rooms(
3757
3761
): Short
3758
3762
fun uniffi_matrix_sdk_ffi_checksum_method_roomlistservice_room(
3759
3763
): Short
3760
3764
fun uniffi_matrix_sdk_ffi_checksum_method_roomlistservice_state(
3761
3765
): Short
3766
+ fun uniffi_matrix_sdk_ffi_checksum_method_roomlistservice_subscribe_to_rooms(
3767
+ ): Short
3762
3768
fun uniffi_matrix_sdk_ffi_checksum_method_roomlistservice_sync_indicator(
3763
3769
): Short
3764
3770
fun uniffi_matrix_sdk_ffi_checksum_method_roommembersiterator_len(
@@ -4444,6 +4450,9 @@ private fun uniffiCheckApiChecksums(lib: UniffiLib) {
4444
4450
if (lib.uniffi_matrix_sdk_ffi_checksum_method_identityresethandle_auth_type() != 43501.toShort()) {
4445
4451
throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
4446
4452
}
4453
+ if (lib.uniffi_matrix_sdk_ffi_checksum_method_identityresethandle_cancel() != 57622.toShort()) {
4454
+ throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
4455
+ }
4447
4456
if (lib.uniffi_matrix_sdk_ffi_checksum_method_identityresethandle_reset() != 11997.toShort()) {
4448
4457
throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
4449
4458
}
@@ -4837,9 +4846,6 @@ private fun uniffiCheckApiChecksums(lib: UniffiLib) {
4837
4846
if (lib.uniffi_matrix_sdk_ffi_checksum_method_roomlistitem_room_info() != 32985.toShort()) {
4838
4847
throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
4839
4848
}
4840
- if (lib.uniffi_matrix_sdk_ffi_checksum_method_roomlistitem_subscribe() != 60003.toShort()) {
4841
- throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
4842
- }
4843
4849
if (lib.uniffi_matrix_sdk_ffi_checksum_method_roomlistservice_all_rooms() != 49704.toShort()) {
4844
4850
throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
4845
4851
}
@@ -4849,6 +4855,9 @@ private fun uniffiCheckApiChecksums(lib: UniffiLib) {
4849
4855
if (lib.uniffi_matrix_sdk_ffi_checksum_method_roomlistservice_state() != 64650.toShort()) {
4850
4856
throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
4851
4857
}
4858
+ if (lib.uniffi_matrix_sdk_ffi_checksum_method_roomlistservice_subscribe_to_rooms() != 21360.toShort()) {
4859
+ throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
4860
+ }
4852
4861
if (lib.uniffi_matrix_sdk_ffi_checksum_method_roomlistservice_sync_indicator() != 16821.toShort()) {
4853
4862
throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
4854
4863
}
@@ -9386,6 +9395,8 @@ public interface IdentityResetHandleInterface {
9386
9395
*/
9387
9396
fun `authType`(): CrossSigningResetAuthType
9388
9397
9398
+ suspend fun `cancel`()
9399
+
9389
9400
/**
9390
9401
* This method starts the identity reset process and
9391
9402
* will go through the following steps:
@@ -9498,6 +9509,27 @@ open class IdentityResetHandle: Disposable, AutoCloseable, IdentityResetHandleIn
9498
9509
9499
9510
9500
9511
9512
+ @Suppress("ASSIGNED_BUT_NEVER_ACCESSED_VARIABLE")
9513
+ override suspend fun `cancel`() {
9514
+ return uniffiRustCallAsync(
9515
+ callWithPointer { thisPtr ->
9516
+ UniffiLib.INSTANCE.uniffi_matrix_sdk_ffi_fn_method_identityresethandle_cancel(
9517
+ thisPtr,
9518
+
9519
+ )
9520
+ },
9521
+ { future, callback, continuation -> UniffiLib.INSTANCE.ffi_matrix_sdk_ffi_rust_future_poll_void(future, callback, continuation) },
9522
+ { future, continuation -> UniffiLib.INSTANCE.ffi_matrix_sdk_ffi_rust_future_complete_void(future, continuation) },
9523
+ { future -> UniffiLib.INSTANCE.ffi_matrix_sdk_ffi_rust_future_free_void(future) },
9524
+ // lift function
9525
+ { Unit },
9526
+
9527
+ // Error FFI converter
9528
+ UniffiNullRustCallStatusErrorHandler,
9529
+ )
9530
+ }
9531
+
9532
+
9501
9533
/**
9502
9534
* This method starts the identity reset process and
9503
9535
* will go through the following steps:
@@ -15101,8 +15133,6 @@ public interface RoomListItemInterface {
15101
15133
15102
15134
suspend fun `roomInfo`(): RoomInfo
15103
15135
15104
- fun `subscribe`(`settings`: RoomSubscription?)
15105
-
15106
15136
companion object
15107
15137
}
15108
15138
@@ -15384,17 +15414,6 @@ open class RoomListItem: Disposable, AutoCloseable, RoomListItemInterface {
15384
15414
)
15385
15415
}
15386
15416
15387
- override fun `subscribe`(`settings`: RoomSubscription?)
15388
- =
15389
- callWithPointer {
15390
- uniffiRustCall() { _status ->
15391
- UniffiLib.INSTANCE.uniffi_matrix_sdk_ffi_fn_method_roomlistitem_subscribe(
15392
- it, FfiConverterOptionalTypeRoomSubscription.lower(`settings`),_status)
15393
- }
15394
- }
15395
-
15396
-
15397
-
15398
15417
15399
15418
15400
15419
@@ -15535,6 +15554,8 @@ public interface RoomListServiceInterface {
15535
15554
15536
15555
fun `state`(`listener`: RoomListServiceStateListener): TaskHandle
15537
15556
15557
+ fun `subscribeToRooms`(`roomIds`: List<kotlin.String>, `settings`: RoomSubscription?)
15558
+
15538
15559
fun `syncIndicator`(`delayBeforeShowingInMs`: kotlin.UInt, `delayBeforeHidingInMs`: kotlin.UInt, `listener`: RoomListServiceSyncIndicatorListener): TaskHandle
15539
15560
15540
15561
companion object
@@ -15667,6 +15688,18 @@ open class RoomListService: Disposable, AutoCloseable, RoomListServiceInterface
15667
15688
}
15668
15689
15669
15690
15691
+
15692
+ @Throws(RoomListException::class)override fun `subscribeToRooms`(`roomIds`: List<kotlin.String>, `settings`: RoomSubscription?)
15693
+ =
15694
+ callWithPointer {
15695
+ uniffiRustCallWithError(RoomListException) { _status ->
15696
+ UniffiLib.INSTANCE.uniffi_matrix_sdk_ffi_fn_method_roomlistservice_subscribe_to_rooms(
15697
+ it, FfiConverterSequenceString.lower(`roomIds`),FfiConverterOptionalTypeRoomSubscription.lower(`settings`),_status)
15698
+ }
15699
+ }
15700
+
15701
+
15702
+
15670
15703
override fun `syncIndicator`(`delayBeforeShowingInMs`: kotlin.UInt, `delayBeforeHidingInMs`: kotlin.UInt, `listener`: RoomListServiceSyncIndicatorListener): TaskHandle {
15671
15704
return FfiConverterTypeTaskHandle.lift(
15672
15705
callWithPointer {
0 commit comments