@@ -401,6 +401,8 @@ internal interface _UniFFILib : Library {
401
401
): Pointer
402
402
fun uniffi_xmtpv3_fn_method_fficonversations_stream (`ptr`: Pointer ,`callback`: Long ,
403
403
): Pointer
404
+ fun uniffi_xmtpv3_fn_method_fficonversations_stream_all_messages (`ptr`: Pointer ,`messageCallback`: Long ,
405
+ ): Pointer
404
406
fun uniffi_xmtpv3_fn_method_fficonversations_sync (`ptr`: Pointer ,
405
407
): Pointer
406
408
fun uniffi_xmtpv3_fn_free_ffigroup (`ptr`: Pointer ,_uniffi_out_err : RustCallStatus ,
@@ -657,6 +659,8 @@ internal interface _UniFFILib : Library {
657
659
): Short
658
660
fun uniffi_xmtpv3_checksum_method_fficonversations_stream (
659
661
): Short
662
+ fun uniffi_xmtpv3_checksum_method_fficonversations_stream_all_messages (
663
+ ): Short
660
664
fun uniffi_xmtpv3_checksum_method_fficonversations_sync (
661
665
): Short
662
666
fun uniffi_xmtpv3_checksum_method_ffigroup_add_members (
@@ -795,6 +799,9 @@ private fun uniffiCheckApiChecksums(lib: _UniFFILib) {
795
799
if (lib.uniffi_xmtpv3_checksum_method_fficonversations_stream() != 60583 .toShort()) {
796
800
throw RuntimeException (" UniFFI API checksum mismatch: try cleaning and rebuilding your project" )
797
801
}
802
+ if (lib.uniffi_xmtpv3_checksum_method_fficonversations_stream_all_messages() != 65211 .toShort()) {
803
+ throw RuntimeException (" UniFFI API checksum mismatch: try cleaning and rebuilding your project" )
804
+ }
798
805
if (lib.uniffi_xmtpv3_checksum_method_fficonversations_sync() != 62598 .toShort()) {
799
806
throw RuntimeException (" UniFFI API checksum mismatch: try cleaning and rebuilding your project" )
800
807
}
@@ -1289,6 +1296,7 @@ public interface FfiConversationsInterface {
1289
1296
suspend fun `createGroup` (`accountAddresses`: List <String >, `permissions`: GroupPermissions ? ): FfiGroup @Throws (GenericException ::class)
1290
1297
suspend fun `list` (`opts`: FfiListConversationsOptions ): List <FfiGroup >@Throws (GenericException ::class)
1291
1298
suspend fun `stream` (`callback`: FfiConversationCallback ): FfiStreamCloser @Throws (GenericException ::class)
1299
+ suspend fun `streamAllMessages` (`messageCallback`: FfiMessageCallback ): FfiStreamCloser @Throws (GenericException ::class)
1292
1300
suspend fun `sync` ()
1293
1301
companion object
1294
1302
}
@@ -1372,6 +1380,26 @@ class FfiConversations(
1372
1380
)
1373
1381
}
1374
1382
1383
+ @Throws(GenericException ::class )
1384
+ @Suppress(" ASSIGNED_BUT_NEVER_ACCESSED_VARIABLE" )
1385
+ override suspend fun `streamAllMessages` (`messageCallback`: FfiMessageCallback ) : FfiStreamCloser {
1386
+ return uniffiRustCallAsync(
1387
+ callWithPointer { thisPtr ->
1388
+ _UniFFILib .INSTANCE .uniffi_xmtpv3_fn_method_fficonversations_stream_all_messages(
1389
+ thisPtr,
1390
+ FfiConverterTypeFfiMessageCallback .lower(`messageCallback`),
1391
+ )
1392
+ },
1393
+ { future, continuation -> _UniFFILib .INSTANCE .ffi_xmtpv3_rust_future_poll_pointer(future, continuation) },
1394
+ { future, continuation -> _UniFFILib .INSTANCE .ffi_xmtpv3_rust_future_complete_pointer(future, continuation) },
1395
+ { future -> _UniFFILib .INSTANCE .ffi_xmtpv3_rust_future_free_pointer(future) },
1396
+ // lift function
1397
+ { FfiConverterTypeFfiStreamCloser .lift(it) },
1398
+ // Error FFI converter
1399
+ GenericException .ErrorHandler ,
1400
+ )
1401
+ }
1402
+
1375
1403
@Throws(GenericException ::class )
1376
1404
@Suppress(" ASSIGNED_BUT_NEVER_ACCESSED_VARIABLE" )
1377
1405
override suspend fun `sync` () {
0 commit comments