@@ -2408,6 +2408,8 @@ internal open class UniffiVTableCallbackInterfaceWidgetCapabilitiesProvider(
2408
2408
2409
2409
2410
2410
2411
+
2412
+
2411
2413
2412
2414
2413
2415
@@ -3127,8 +3129,8 @@ internal interface UniffiLib : Library {
3127
3129
): Pointer
3128
3130
fun uniffi_matrix_sdk_ffi_fn_method_roomlistservice_state(`ptr`: Pointer,`listener`: Long,uniffi_out_err: UniffiRustCallStatus,
3129
3131
): Pointer
3130
- fun uniffi_matrix_sdk_ffi_fn_method_roomlistservice_subscribe_to_rooms(`ptr`: Pointer,`roomIds`: RustBuffer.ByValue,uniffi_out_err: UniffiRustCallStatus,
3131
- ): Unit
3132
+ fun uniffi_matrix_sdk_ffi_fn_method_roomlistservice_subscribe_to_rooms(`ptr`: Pointer,`roomIds`: RustBuffer.ByValue,
3133
+ ): Long
3132
3134
fun uniffi_matrix_sdk_ffi_fn_method_roomlistservice_sync_indicator(`ptr`: Pointer,`delayBeforeShowingInMs`: Int,`delayBeforeHidingInMs`: Int,`listener`: Long,uniffi_out_err: UniffiRustCallStatus,
3133
3135
): Pointer
3134
3136
fun uniffi_matrix_sdk_ffi_fn_clone_roommembersiterator(`ptr`: Pointer,uniffi_out_err: UniffiRustCallStatus,
@@ -3295,6 +3297,8 @@ internal interface UniffiLib : Library {
3295
3297
): Pointer
3296
3298
fun uniffi_matrix_sdk_ffi_fn_method_syncservicebuilder_with_offline_mode(`ptr`: Pointer,uniffi_out_err: UniffiRustCallStatus,
3297
3299
): Pointer
3300
+ fun uniffi_matrix_sdk_ffi_fn_method_syncservicebuilder_with_share_pos(`ptr`: Pointer,`enable`: Byte,uniffi_out_err: UniffiRustCallStatus,
3301
+ ): Pointer
3298
3302
fun uniffi_matrix_sdk_ffi_fn_clone_taskhandle(`ptr`: Pointer,uniffi_out_err: UniffiRustCallStatus,
3299
3303
): Pointer
3300
3304
fun uniffi_matrix_sdk_ffi_fn_free_taskhandle(`ptr`: Pointer,uniffi_out_err: UniffiRustCallStatus,
@@ -4427,6 +4431,8 @@ internal interface UniffiLib : Library {
4427
4431
): Short
4428
4432
fun uniffi_matrix_sdk_ffi_checksum_method_syncservicebuilder_with_offline_mode(
4429
4433
): Short
4434
+ fun uniffi_matrix_sdk_ffi_checksum_method_syncservicebuilder_with_share_pos(
4435
+ ): Short
4430
4436
fun uniffi_matrix_sdk_ffi_checksum_method_taskhandle_cancel(
4431
4437
): Short
4432
4438
fun uniffi_matrix_sdk_ffi_checksum_method_taskhandle_is_finished(
@@ -5200,7 +5206,7 @@ private fun uniffiCheckApiChecksums(lib: UniffiLib) {
5200
5206
if (lib.uniffi_matrix_sdk_ffi_checksum_method_notificationclient_get_notification() != 52873.toShort()) {
5201
5207
throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
5202
5208
}
5203
- if (lib.uniffi_matrix_sdk_ffi_checksum_method_notificationclient_get_notifications() != 32112 .toShort()) {
5209
+ if (lib.uniffi_matrix_sdk_ffi_checksum_method_notificationclient_get_notifications() != 64372 .toShort()) {
5204
5210
throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
5205
5211
}
5206
5212
if (lib.uniffi_matrix_sdk_ffi_checksum_method_notificationclient_get_room() != 26581.toShort()) {
@@ -5596,7 +5602,7 @@ private fun uniffiCheckApiChecksums(lib: UniffiLib) {
5596
5602
if (lib.uniffi_matrix_sdk_ffi_checksum_method_roomlistservice_state() != 64650.toShort()) {
5597
5603
throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
5598
5604
}
5599
- if (lib.uniffi_matrix_sdk_ffi_checksum_method_roomlistservice_subscribe_to_rooms() != 59765 .toShort()) {
5605
+ if (lib.uniffi_matrix_sdk_ffi_checksum_method_roomlistservice_subscribe_to_rooms() != 5528 .toShort()) {
5600
5606
throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
5601
5607
}
5602
5608
if (lib.uniffi_matrix_sdk_ffi_checksum_method_roomlistservice_sync_indicator() != 16821.toShort()) {
@@ -5770,6 +5776,9 @@ private fun uniffiCheckApiChecksums(lib: UniffiLib) {
5770
5776
if (lib.uniffi_matrix_sdk_ffi_checksum_method_syncservicebuilder_with_offline_mode() != 16958.toShort()) {
5771
5777
throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
5772
5778
}
5779
+ if (lib.uniffi_matrix_sdk_ffi_checksum_method_syncservicebuilder_with_share_pos() != 18892.toShort()) {
5780
+ throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
5781
+ }
5773
5782
if (lib.uniffi_matrix_sdk_ffi_checksum_method_taskhandle_cancel() != 9124.toShort()) {
5774
5783
throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
5775
5784
}
@@ -12878,8 +12887,9 @@ public interface NotificationClientInterface {
12878
12887
*
12879
12888
* Returns an error if the flow failed when preparing to fetch the
12880
12889
* notifications, and a [`HashMap`] containing either a
12881
- * [`NotificationItem`] or no entry for it if it failed to fetch a
12882
- * notification for the provided [`EventId`].
12890
+ * [`BatchNotificationResult`], that indicates if the notification was
12891
+ * successfully fetched (in which case, it's a [`NotificationStatus`]), or
12892
+ * an error message if it couldn't be fetched.
12883
12893
*/
12884
12894
suspend fun `getNotifications`(`requests`: List<NotificationItemsRequest>): Map<kotlin.String, BatchNotificationResult>
12885
12895
@@ -13012,8 +13022,9 @@ open class NotificationClient: Disposable, AutoCloseable, NotificationClientInte
13012
13022
*
13013
13023
* Returns an error if the flow failed when preparing to fetch the
13014
13024
* notifications, and a [`HashMap`] containing either a
13015
- * [`NotificationItem`] or no entry for it if it failed to fetch a
13016
- * notification for the provided [`EventId`].
13025
+ * [`BatchNotificationResult`], that indicates if the notification was
13026
+ * successfully fetched (in which case, it's a [`NotificationStatus`]), or
13027
+ * an error message if it couldn't be fetched.
13017
13028
*/
13018
13029
@Throws(ClientException::class)
13019
13030
@Suppress("ASSIGNED_BUT_NEVER_ACCESSED_VARIABLE")
@@ -18352,7 +18363,7 @@ public interface RoomListServiceInterface {
18352
18363
18353
18364
fun `state`(`listener`: RoomListServiceStateListener): TaskHandle
18354
18365
18355
- fun `subscribeToRooms`(`roomIds`: List<kotlin.String>)
18366
+ suspend fun `subscribeToRooms`(`roomIds`: List<kotlin.String>)
18356
18367
18357
18368
fun `syncIndicator`(`delayBeforeShowingInMs`: kotlin.UInt, `delayBeforeHidingInMs`: kotlin.UInt, `listener`: RoomListServiceSyncIndicatorListener): TaskHandle
18358
18369
@@ -18487,16 +18498,26 @@ open class RoomListService: Disposable, AutoCloseable, RoomListServiceInterface
18487
18498
18488
18499
18489
18500
18490
- @Throws(RoomListException::class)override fun `subscribeToRooms`(`roomIds`: List<kotlin.String>)
18491
- =
18492
- callWithPointer {
18493
- uniffiRustCallWithError(RoomListException) { _status ->
18494
- UniffiLib.INSTANCE.uniffi_matrix_sdk_ffi_fn_method_roomlistservice_subscribe_to_rooms(
18495
- it, FfiConverterSequenceString.lower(`roomIds`),_status)
18496
- }
18501
+ @Throws(RoomListException::class)
18502
+ @Suppress("ASSIGNED_BUT_NEVER_ACCESSED_VARIABLE")
18503
+ override suspend fun `subscribeToRooms`(`roomIds`: List<kotlin.String>) {
18504
+ return uniffiRustCallAsync(
18505
+ callWithPointer { thisPtr ->
18506
+ UniffiLib.INSTANCE.uniffi_matrix_sdk_ffi_fn_method_roomlistservice_subscribe_to_rooms(
18507
+ thisPtr,
18508
+ FfiConverterSequenceString.lower(`roomIds`),
18509
+ )
18510
+ },
18511
+ { future, callback, continuation -> UniffiLib.INSTANCE.ffi_matrix_sdk_ffi_rust_future_poll_void(future, callback, continuation) },
18512
+ { future, continuation -> UniffiLib.INSTANCE.ffi_matrix_sdk_ffi_rust_future_complete_void(future, continuation) },
18513
+ { future -> UniffiLib.INSTANCE.ffi_matrix_sdk_ffi_rust_future_free_void(future) },
18514
+ // lift function
18515
+ { Unit },
18516
+
18517
+ // Error FFI converter
18518
+ RoomListException.ErrorHandler,
18519
+ )
18497
18520
}
18498
-
18499
-
18500
18521
18501
18522
override fun `syncIndicator`(`delayBeforeShowingInMs`: kotlin.UInt, `delayBeforeHidingInMs`: kotlin.UInt, `listener`: RoomListServiceSyncIndicatorListener): TaskHandle {
18502
18523
return FfiConverterTypeTaskHandle.lift(
@@ -22661,6 +22682,8 @@ public interface SyncServiceBuilderInterface {
22661
22682
*/
22662
22683
fun `withOfflineMode`(): SyncServiceBuilder
22663
22684
22685
+ fun `withSharePos`(`enable`: kotlin.Boolean): SyncServiceBuilder
22686
+
22664
22687
companion object
22665
22688
}
22666
22689
@@ -22793,6 +22816,18 @@ open class SyncServiceBuilder: Disposable, AutoCloseable, SyncServiceBuilderInte
22793
22816
}
22794
22817
22795
22818
22819
+ override fun `withSharePos`(`enable`: kotlin.Boolean): SyncServiceBuilder {
22820
+ return FfiConverterTypeSyncServiceBuilder.lift(
22821
+ callWithPointer {
22822
+ uniffiRustCall() { _status ->
22823
+ UniffiLib.INSTANCE.uniffi_matrix_sdk_ffi_fn_method_syncservicebuilder_with_share_pos(
22824
+ it, FfiConverterBoolean.lower(`enable`),_status)
22825
+ }
22826
+ }
22827
+ )
22828
+ }
22829
+
22830
+
22796
22831
22797
22832
22798
22833
0 commit comments