@@ -2377,6 +2377,8 @@ internal open class UniffiVTableCallbackInterfaceWidgetCapabilitiesProvider(
2377
2377
2378
2378
2379
2379
2380
+
2381
+
2380
2382
2381
2383
2382
2384
@@ -2888,7 +2890,7 @@ internal interface UniffiLib : Library {
2888
2890
): Long
2889
2891
fun uniffi_matrix_sdk_ffi_fn_method_room_canonical_alias(`ptr`: Pointer,uniffi_out_err: UniffiRustCallStatus,
2890
2892
): RustBuffer.ByValue
2891
- fun uniffi_matrix_sdk_ffi_fn_method_room_clear_composer_draft(`ptr`: Pointer,
2893
+ fun uniffi_matrix_sdk_ffi_fn_method_room_clear_composer_draft(`ptr`: Pointer,`threadRoot`: RustBuffer.ByValue,
2892
2894
): Long
2893
2895
fun uniffi_matrix_sdk_ffi_fn_method_room_clear_event_cache_storage(`ptr`: Pointer,
2894
2896
): Long
@@ -2948,7 +2950,7 @@ internal interface UniffiLib : Library {
2948
2950
): Long
2949
2951
fun uniffi_matrix_sdk_ffi_fn_method_room_leave(`ptr`: Pointer,
2950
2952
): Long
2951
- fun uniffi_matrix_sdk_ffi_fn_method_room_load_composer_draft(`ptr`: Pointer,
2953
+ fun uniffi_matrix_sdk_ffi_fn_method_room_load_composer_draft(`ptr`: Pointer,`threadRoot`: RustBuffer.ByValue,
2952
2954
): Long
2953
2955
fun uniffi_matrix_sdk_ffi_fn_method_room_mark_as_read(`ptr`: Pointer,`receiptType`: RustBuffer.ByValue,
2954
2956
): Long
@@ -2996,7 +2998,7 @@ internal interface UniffiLib : Library {
2996
2998
): Long
2997
2999
fun uniffi_matrix_sdk_ffi_fn_method_room_room_info(`ptr`: Pointer,
2998
3000
): Long
2999
- fun uniffi_matrix_sdk_ffi_fn_method_room_save_composer_draft(`ptr`: Pointer,`draft`: RustBuffer.ByValue,
3001
+ fun uniffi_matrix_sdk_ffi_fn_method_room_save_composer_draft(`ptr`: Pointer,`draft`: RustBuffer.ByValue,`threadRoot`: RustBuffer.ByValue,
3000
3002
): Long
3001
3003
fun uniffi_matrix_sdk_ffi_fn_method_room_send_call_notification(`ptr`: Pointer,`callId`: RustBuffer.ByValue,`application`: RustBuffer.ByValue,`notifyType`: RustBuffer.ByValue,`mentions`: RustBuffer.ByValue,
3002
3004
): Long
@@ -3248,6 +3250,8 @@ internal interface UniffiLib : Library {
3248
3250
): Unit
3249
3251
fun uniffi_matrix_sdk_ffi_fn_method_threadsummary_latest_event(`ptr`: Pointer,uniffi_out_err: UniffiRustCallStatus,
3250
3252
): RustBuffer.ByValue
3253
+ fun uniffi_matrix_sdk_ffi_fn_method_threadsummary_num_replies(`ptr`: Pointer,uniffi_out_err: UniffiRustCallStatus,
3254
+ ): Long
3251
3255
fun uniffi_matrix_sdk_ffi_fn_clone_timeline(`ptr`: Pointer,uniffi_out_err: UniffiRustCallStatus,
3252
3256
): Pointer
3253
3257
fun uniffi_matrix_sdk_ffi_fn_free_timeline(`ptr`: Pointer,uniffi_out_err: UniffiRustCallStatus,
@@ -3292,7 +3296,7 @@ internal interface UniffiLib : Library {
3292
3296
): Pointer
3293
3297
fun uniffi_matrix_sdk_ffi_fn_method_timeline_send_image(`ptr`: Pointer,`params`: RustBuffer.ByValue,`thumbnailPath`: RustBuffer.ByValue,`imageInfo`: RustBuffer.ByValue,`progressWatcher`: RustBuffer.ByValue,uniffi_out_err: UniffiRustCallStatus,
3294
3298
): Pointer
3295
- fun uniffi_matrix_sdk_ffi_fn_method_timeline_send_location(`ptr`: Pointer,`body`: RustBuffer.ByValue,`geoUri`: RustBuffer.ByValue,`description`: RustBuffer.ByValue,`zoomLevel`: RustBuffer.ByValue,`assetType`: RustBuffer.ByValue,
3299
+ fun uniffi_matrix_sdk_ffi_fn_method_timeline_send_location(`ptr`: Pointer,`body`: RustBuffer.ByValue,`geoUri`: RustBuffer.ByValue,`description`: RustBuffer.ByValue,`zoomLevel`: RustBuffer.ByValue,`assetType`: RustBuffer.ByValue,`replyParams`: RustBuffer.ByValue,
3296
3300
): Long
3297
3301
fun uniffi_matrix_sdk_ffi_fn_method_timeline_send_poll_response(`ptr`: Pointer,`pollStartEventId`: RustBuffer.ByValue,`answers`: RustBuffer.ByValue,
3298
3302
): Long
@@ -4348,6 +4352,8 @@ internal interface UniffiLib : Library {
4348
4352
): Short
4349
4353
fun uniffi_matrix_sdk_ffi_checksum_method_threadsummary_latest_event(
4350
4354
): Short
4355
+ fun uniffi_matrix_sdk_ffi_checksum_method_threadsummary_num_replies(
4356
+ ): Short
4351
4357
fun uniffi_matrix_sdk_ffi_checksum_method_timeline_add_listener(
4352
4358
): Short
4353
4359
fun uniffi_matrix_sdk_ffi_checksum_method_timeline_create_message_content(
@@ -5230,7 +5236,7 @@ private fun uniffiCheckApiChecksums(lib: UniffiLib) {
5230
5236
if (lib.uniffi_matrix_sdk_ffi_checksum_method_room_canonical_alias() != 19786.toShort()) {
5231
5237
throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
5232
5238
}
5233
- if (lib.uniffi_matrix_sdk_ffi_checksum_method_room_clear_composer_draft() != 39667 .toShort()) {
5239
+ if (lib.uniffi_matrix_sdk_ffi_checksum_method_room_clear_composer_draft() != 59182 .toShort()) {
5234
5240
throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
5235
5241
}
5236
5242
if (lib.uniffi_matrix_sdk_ffi_checksum_method_room_clear_event_cache_storage() != 13838.toShort()) {
@@ -5320,7 +5326,7 @@ private fun uniffiCheckApiChecksums(lib: UniffiLib) {
5320
5326
if (lib.uniffi_matrix_sdk_ffi_checksum_method_room_leave() != 63688.toShort()) {
5321
5327
throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
5322
5328
}
5323
- if (lib.uniffi_matrix_sdk_ffi_checksum_method_room_load_composer_draft() != 38115 .toShort()) {
5329
+ if (lib.uniffi_matrix_sdk_ffi_checksum_method_room_load_composer_draft() != 62856 .toShort()) {
5324
5330
throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
5325
5331
}
5326
5332
if (lib.uniffi_matrix_sdk_ffi_checksum_method_room_mark_as_read() != 57806.toShort()) {
@@ -5392,7 +5398,7 @@ private fun uniffiCheckApiChecksums(lib: UniffiLib) {
5392
5398
if (lib.uniffi_matrix_sdk_ffi_checksum_method_room_room_info() != 41146.toShort()) {
5393
5399
throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
5394
5400
}
5395
- if (lib.uniffi_matrix_sdk_ffi_checksum_method_room_save_composer_draft() != 62232 .toShort()) {
5401
+ if (lib.uniffi_matrix_sdk_ffi_checksum_method_room_save_composer_draft() != 27585 .toShort()) {
5396
5402
throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
5397
5403
}
5398
5404
if (lib.uniffi_matrix_sdk_ffi_checksum_method_room_send_call_notification() != 43366.toShort()) {
@@ -5656,6 +5662,9 @@ private fun uniffiCheckApiChecksums(lib: UniffiLib) {
5656
5662
if (lib.uniffi_matrix_sdk_ffi_checksum_method_threadsummary_latest_event() != 52917.toShort()) {
5657
5663
throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
5658
5664
}
5665
+ if (lib.uniffi_matrix_sdk_ffi_checksum_method_threadsummary_num_replies() != 10634.toShort()) {
5666
+ throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
5667
+ }
5659
5668
if (lib.uniffi_matrix_sdk_ffi_checksum_method_timeline_add_listener() != 18746.toShort()) {
5660
5669
throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
5661
5670
}
@@ -5716,7 +5725,7 @@ private fun uniffiCheckApiChecksums(lib: UniffiLib) {
5716
5725
if (lib.uniffi_matrix_sdk_ffi_checksum_method_timeline_send_image() != 25436.toShort()) {
5717
5726
throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
5718
5727
}
5719
- if (lib.uniffi_matrix_sdk_ffi_checksum_method_timeline_send_location() != 47400 .toShort()) {
5728
+ if (lib.uniffi_matrix_sdk_ffi_checksum_method_timeline_send_location() != 57832 .toShort()) {
5720
5729
throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
5721
5730
}
5722
5731
if (lib.uniffi_matrix_sdk_ffi_checksum_method_timeline_send_poll_response() != 7453.toShort()) {
@@ -14186,7 +14195,7 @@ public interface RoomInterface {
14186
14195
/**
14187
14196
* Remove the `ComposerDraft` stored in the state store for this room.
14188
14197
*/
14189
- suspend fun `clearComposerDraft`()
14198
+ suspend fun `clearComposerDraft`(`threadRoot`: kotlin.String? )
14190
14199
14191
14200
/**
14192
14201
* Clear the event cache storage for the current room.
@@ -14343,7 +14352,7 @@ public interface RoomInterface {
14343
14352
/**
14344
14353
* Retrieve the `ComposerDraft` stored in the state store for this room.
14345
14354
*/
14346
- suspend fun `loadComposerDraft`(): ComposerDraft?
14355
+ suspend fun `loadComposerDraft`(`threadRoot`: kotlin.String? ): ComposerDraft?
14347
14356
14348
14357
/**
14349
14358
* Mark a room as read, by attaching a read receipt on the latest event.
@@ -14492,7 +14501,7 @@ public interface RoomInterface {
14492
14501
* Store the given `ComposerDraft` in the state store using the current
14493
14502
* room id, as identifier.
14494
14503
*/
14495
- suspend fun `saveComposerDraft`(`draft`: ComposerDraft)
14504
+ suspend fun `saveComposerDraft`(`draft`: ComposerDraft, `threadRoot`: kotlin.String? )
14496
14505
14497
14506
/**
14498
14507
* Send a call notification event in the current room.
@@ -15076,12 +15085,12 @@ open class Room: Disposable, AutoCloseable, RoomInterface {
15076
15085
*/
15077
15086
@Throws(ClientException::class)
15078
15087
@Suppress("ASSIGNED_BUT_NEVER_ACCESSED_VARIABLE")
15079
- override suspend fun `clearComposerDraft`() {
15088
+ override suspend fun `clearComposerDraft`(`threadRoot`: kotlin.String? ) {
15080
15089
return uniffiRustCallAsync(
15081
15090
callWithPointer { thisPtr ->
15082
15091
UniffiLib.INSTANCE.uniffi_matrix_sdk_ffi_fn_method_room_clear_composer_draft(
15083
15092
thisPtr,
15084
-
15093
+ FfiConverterOptionalString.lower(`threadRoot`),
15085
15094
)
15086
15095
},
15087
15096
{ future, callback, continuation -> UniffiLib.INSTANCE.ffi_matrix_sdk_ffi_rust_future_poll_void(future, callback, continuation) },
@@ -15712,12 +15721,12 @@ open class Room: Disposable, AutoCloseable, RoomInterface {
15712
15721
*/
15713
15722
@Throws(ClientException::class)
15714
15723
@Suppress("ASSIGNED_BUT_NEVER_ACCESSED_VARIABLE")
15715
- override suspend fun `loadComposerDraft`() : ComposerDraft? {
15724
+ override suspend fun `loadComposerDraft`(`threadRoot`: kotlin.String? ) : ComposerDraft? {
15716
15725
return uniffiRustCallAsync(
15717
15726
callWithPointer { thisPtr ->
15718
15727
UniffiLib.INSTANCE.uniffi_matrix_sdk_ffi_fn_method_room_load_composer_draft(
15719
15728
thisPtr,
15720
-
15729
+ FfiConverterOptionalString.lower(`threadRoot`),
15721
15730
)
15722
15731
},
15723
15732
{ future, callback, continuation -> UniffiLib.INSTANCE.ffi_matrix_sdk_ffi_rust_future_poll_rust_buffer(future, callback, continuation) },
@@ -16286,12 +16295,12 @@ open class Room: Disposable, AutoCloseable, RoomInterface {
16286
16295
*/
16287
16296
@Throws(ClientException::class)
16288
16297
@Suppress("ASSIGNED_BUT_NEVER_ACCESSED_VARIABLE")
16289
- override suspend fun `saveComposerDraft`(`draft`: ComposerDraft) {
16298
+ override suspend fun `saveComposerDraft`(`draft`: ComposerDraft, `threadRoot`: kotlin.String? ) {
16290
16299
return uniffiRustCallAsync(
16291
16300
callWithPointer { thisPtr ->
16292
16301
UniffiLib.INSTANCE.uniffi_matrix_sdk_ffi_fn_method_room_save_composer_draft(
16293
16302
thisPtr,
16294
- FfiConverterTypeComposerDraft.lower(`draft`),
16303
+ FfiConverterTypeComposerDraft.lower(`draft`),FfiConverterOptionalString.lower(`threadRoot`),
16295
16304
)
16296
16305
},
16297
16306
{ future, callback, continuation -> UniffiLib.INSTANCE.ffi_matrix_sdk_ffi_rust_future_poll_void(future, callback, continuation) },
@@ -22495,6 +22504,8 @@ public interface ThreadSummaryInterface {
22495
22504
22496
22505
fun `latestEvent`(): EmbeddedEventDetails
22497
22506
22507
+ fun `numReplies`(): kotlin.ULong
22508
+
22498
22509
companion object
22499
22510
}
22500
22511
@@ -22591,6 +22602,18 @@ open class ThreadSummary: Disposable, AutoCloseable, ThreadSummaryInterface {
22591
22602
}
22592
22603
22593
22604
22605
+ override fun `numReplies`(): kotlin.ULong {
22606
+ return FfiConverterULong.lift(
22607
+ callWithPointer {
22608
+ uniffiRustCall() { _status ->
22609
+ UniffiLib.INSTANCE.uniffi_matrix_sdk_ffi_fn_method_threadsummary_num_replies(
22610
+ it, _status)
22611
+ }
22612
+ }
22613
+ )
22614
+ }
22615
+
22616
+
22594
22617
22595
22618
22596
22619
@@ -22834,7 +22857,7 @@ public interface TimelineInterface {
22834
22857
22835
22858
fun `sendImage`(`params`: UploadParameters, `thumbnailPath`: kotlin.String?, `imageInfo`: ImageInfo, `progressWatcher`: ProgressWatcher?): SendAttachmentJoinHandle
22836
22859
22837
- suspend fun `sendLocation`(`body`: kotlin.String, `geoUri`: kotlin.String, `description`: kotlin.String?, `zoomLevel`: kotlin.UByte?, `assetType`: AssetType?)
22860
+ suspend fun `sendLocation`(`body`: kotlin.String, `geoUri`: kotlin.String, `description`: kotlin.String?, `zoomLevel`: kotlin.UByte?, `assetType`: AssetType?, `replyParams`: ReplyParameters? )
22838
22861
22839
22862
suspend fun `sendPollResponse`(`pollStartEventId`: kotlin.String, `answers`: List<kotlin.String>)
22840
22863
@@ -23407,13 +23430,14 @@ open class Timeline: Disposable, AutoCloseable, TimelineInterface {
23407
23430
23408
23431
23409
23432
23433
+ @Throws(ClientException::class)
23410
23434
@Suppress("ASSIGNED_BUT_NEVER_ACCESSED_VARIABLE")
23411
- override suspend fun `sendLocation`(`body`: kotlin.String, `geoUri`: kotlin.String, `description`: kotlin.String?, `zoomLevel`: kotlin.UByte?, `assetType`: AssetType?) {
23435
+ override suspend fun `sendLocation`(`body`: kotlin.String, `geoUri`: kotlin.String, `description`: kotlin.String?, `zoomLevel`: kotlin.UByte?, `assetType`: AssetType?, `replyParams`: ReplyParameters? ) {
23412
23436
return uniffiRustCallAsync(
23413
23437
callWithPointer { thisPtr ->
23414
23438
UniffiLib.INSTANCE.uniffi_matrix_sdk_ffi_fn_method_timeline_send_location(
23415
23439
thisPtr,
23416
- FfiConverterString.lower(`body`),FfiConverterString.lower(`geoUri`),FfiConverterOptionalString.lower(`description`),FfiConverterOptionalUByte.lower(`zoomLevel`),FfiConverterOptionalTypeAssetType.lower(`assetType`),
23440
+ FfiConverterString.lower(`body`),FfiConverterString.lower(`geoUri`),FfiConverterOptionalString.lower(`description`),FfiConverterOptionalUByte.lower(`zoomLevel`),FfiConverterOptionalTypeAssetType.lower(`assetType`),FfiConverterOptionalTypeReplyParameters.lower(`replyParams`),
23417
23441
)
23418
23442
},
23419
23443
{ future, callback, continuation -> UniffiLib.INSTANCE.ffi_matrix_sdk_ffi_rust_future_poll_void(future, callback, continuation) },
@@ -23423,7 +23447,7 @@ open class Timeline: Disposable, AutoCloseable, TimelineInterface {
23423
23447
{ Unit },
23424
23448
23425
23449
// Error FFI converter
23426
- UniffiNullRustCallStatusErrorHandler ,
23450
+ ClientException.ErrorHandler ,
23427
23451
)
23428
23452
}
23429
23453
0 commit comments