Skip to content

Commit 21e268b

Browse files
author
github-actions
committed
Bump SDK version to 25.06.9 (matrix-rust-sdk to 216e878231eb230255cb4796d45e5bc0faa0d388)
1 parent 20d2a08 commit 21e268b

File tree

2 files changed

+48
-13
lines changed

2 files changed

+48
-13
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
object BuildVersionsSDK {
22
const val majorVersion = 25
33
const val minorVersion = 6
4-
const val patchVersion = 6
4+
const val patchVersion = 9
55
}

sdk/sdk-android/src/main/kotlin/org/matrix/rustcomponents/sdk/matrix_sdk_ffi.kt

Lines changed: 47 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5398,7 +5398,7 @@ private fun uniffiCheckApiChecksums(lib: UniffiLib) {
53985398
if (lib.uniffi_matrix_sdk_ffi_checksum_method_room_send_call_notification() != 43366.toShort()) {
53995399
throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
54005400
}
5401-
if (lib.uniffi_matrix_sdk_ffi_checksum_method_room_send_call_notification_if_needed() != 53551.toShort()) {
5401+
if (lib.uniffi_matrix_sdk_ffi_checksum_method_room_send_call_notification_if_needed() != 52926.toShort()) {
54025402
throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
54035403
}
54045404
if (lib.uniffi_matrix_sdk_ffi_checksum_method_room_send_live_location() != 34248.toShort()) {
@@ -14519,8 +14519,13 @@ public interface RoomInterface {
1451914519
* It will configure the notify type: ring or notify based on:
1452014520
* - is this a DM room -> ring
1452114521
* - is this a group with more than one other member -> notify
14522+
*
14523+
* Returns:
14524+
* - `Ok(true)` if the event was successfully sent.
14525+
* - `Ok(false)` if we didn't send it because it was unnecessary.
14526+
* - `Err(_)` if sending the event failed.
1452214527
*/
14523-
suspend fun `sendCallNotificationIfNeeded`()
14528+
suspend fun `sendCallNotificationIfNeeded`(): kotlin.Boolean
1452414529

1452514530
/**
1452614531
* Send the current users live location beacon in the room.
@@ -16346,23 +16351,27 @@ open class Room: Disposable, AutoCloseable, RoomInterface {
1634616351
* It will configure the notify type: ring or notify based on:
1634716352
* - is this a DM room -> ring
1634816353
* - is this a group with more than one other member -> notify
16354+
*
16355+
* Returns:
16356+
* - `Ok(true)` if the event was successfully sent.
16357+
* - `Ok(false)` if we didn't send it because it was unnecessary.
16358+
* - `Err(_)` if sending the event failed.
1634916359
*/
1635016360
@Throws(ClientException::class)
1635116361
@Suppress("ASSIGNED_BUT_NEVER_ACCESSED_VARIABLE")
16352-
override suspend fun `sendCallNotificationIfNeeded`() {
16362+
override suspend fun `sendCallNotificationIfNeeded`() : kotlin.Boolean {
1635316363
return uniffiRustCallAsync(
1635416364
callWithPointer { thisPtr ->
1635516365
UniffiLib.INSTANCE.uniffi_matrix_sdk_ffi_fn_method_room_send_call_notification_if_needed(
1635616366
thisPtr,
1635716367

1635816368
)
1635916369
},
16360-
{ future, callback, continuation -> UniffiLib.INSTANCE.ffi_matrix_sdk_ffi_rust_future_poll_void(future, callback, continuation) },
16361-
{ future, continuation -> UniffiLib.INSTANCE.ffi_matrix_sdk_ffi_rust_future_complete_void(future, continuation) },
16362-
{ future -> UniffiLib.INSTANCE.ffi_matrix_sdk_ffi_rust_future_free_void(future) },
16370+
{ future, callback, continuation -> UniffiLib.INSTANCE.ffi_matrix_sdk_ffi_rust_future_poll_i8(future, callback, continuation) },
16371+
{ future, continuation -> UniffiLib.INSTANCE.ffi_matrix_sdk_ffi_rust_future_complete_i8(future, continuation) },
16372+
{ future -> UniffiLib.INSTANCE.ffi_matrix_sdk_ffi_rust_future_free_i8(future) },
1636316373
// lift function
16364-
{ Unit },
16365-
16374+
{ FfiConverterBoolean.lift(it) },
1636616375
// Error FFI converter
1636716376
ClientException.ErrorHandler,
1636816377
)
@@ -41512,16 +41521,35 @@ public object FfiConverterTypeTimelineFilter : FfiConverterRustBuffer<TimelineFi
4151241521

4151341522
sealed class TimelineFocus {
4151441523

41515-
object Live : TimelineFocus()
41516-
41524+
data class Live(
41525+
/**
41526+
* Whether to hide in-thread replies from the live timeline.
41527+
*/
41528+
val `hideThreadedEvents`: kotlin.Boolean) : TimelineFocus() {
41529+
companion object
41530+
}
4151741531

4151841532
data class Event(
41533+
/**
41534+
* The initial event to focus on. This is usually the target of a
41535+
* permalink.
41536+
*/
4151941537
val `eventId`: kotlin.String,
41520-
val `numContextEvents`: kotlin.UShort) : TimelineFocus() {
41538+
/**
41539+
* The number of context events to load around the focused event.
41540+
*/
41541+
val `numContextEvents`: kotlin.UShort,
41542+
/**
41543+
* Whether to hide in-thread replies from the live timeline.
41544+
*/
41545+
val `hideThreadedEvents`: kotlin.Boolean) : TimelineFocus() {
4152141546
companion object
4152241547
}
4152341548

4152441549
data class Thread(
41550+
/**
41551+
* The thread root event ID to focus on.
41552+
*/
4152541553
val `rootEventId`: kotlin.String,
4152641554
val `numEvents`: kotlin.UShort) : TimelineFocus() {
4152741555
companion object
@@ -41541,10 +41569,13 @@ sealed class TimelineFocus {
4154141569
public object FfiConverterTypeTimelineFocus : FfiConverterRustBuffer<TimelineFocus>{
4154241570
override fun read(buf: ByteBuffer): TimelineFocus {
4154341571
return when(buf.getInt()) {
41544-
1 -> TimelineFocus.Live
41572+
1 -> TimelineFocus.Live(
41573+
FfiConverterBoolean.read(buf),
41574+
)
4154541575
2 -> TimelineFocus.Event(
4154641576
FfiConverterString.read(buf),
4154741577
FfiConverterUShort.read(buf),
41578+
FfiConverterBoolean.read(buf),
4154841579
)
4154941580
3 -> TimelineFocus.Thread(
4155041581
FfiConverterString.read(buf),
@@ -41563,6 +41594,7 @@ public object FfiConverterTypeTimelineFocus : FfiConverterRustBuffer<TimelineFoc
4156341594
// Add the size for the Int that specifies the variant plus the size needed for all fields
4156441595
(
4156541596
4UL
41597+
+ FfiConverterBoolean.allocationSize(value.`hideThreadedEvents`)
4156641598
)
4156741599
}
4156841600
is TimelineFocus.Event -> {
@@ -41571,6 +41603,7 @@ public object FfiConverterTypeTimelineFocus : FfiConverterRustBuffer<TimelineFoc
4157141603
4UL
4157241604
+ FfiConverterString.allocationSize(value.`eventId`)
4157341605
+ FfiConverterUShort.allocationSize(value.`numContextEvents`)
41606+
+ FfiConverterBoolean.allocationSize(value.`hideThreadedEvents`)
4157441607
)
4157541608
}
4157641609
is TimelineFocus.Thread -> {
@@ -41595,12 +41628,14 @@ public object FfiConverterTypeTimelineFocus : FfiConverterRustBuffer<TimelineFoc
4159541628
when(value) {
4159641629
is TimelineFocus.Live -> {
4159741630
buf.putInt(1)
41631+
FfiConverterBoolean.write(value.`hideThreadedEvents`, buf)
4159841632
Unit
4159941633
}
4160041634
is TimelineFocus.Event -> {
4160141635
buf.putInt(2)
4160241636
FfiConverterString.write(value.`eventId`, buf)
4160341637
FfiConverterUShort.write(value.`numContextEvents`, buf)
41638+
FfiConverterBoolean.write(value.`hideThreadedEvents`, buf)
4160441639
Unit
4160541640
}
4160641641
is TimelineFocus.Thread -> {

0 commit comments

Comments
 (0)