Skip to content

Commit 7aeb9c3

Browse files
author
github-actions
committed
Bump SDK version to 0.2.75 (matrix-rust-sdk to 2cb6ee8e6dc0defd68ba0bf0c816f2b4a235dec7)
1 parent b7b2627 commit 7aeb9c3

File tree

2 files changed

+106
-3
lines changed

2 files changed

+106
-3
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
object BuildVersionsSDK {
22
const val majorVersion = 0
33
const val minorVersion = 2
4-
const val patchVersion = 74
4+
const val patchVersion = 75
55
}

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

+105-2
Original file line numberDiff line numberDiff line change
@@ -2230,6 +2230,8 @@ internal open class UniffiVTableCallbackInterfaceWidgetCapabilitiesProvider(
22302230

22312231

22322232

2233+
2234+
22332235

22342236

22352237

@@ -2943,6 +2945,8 @@ internal interface UniffiLib : Library {
29432945
): Long
29442946
fun uniffi_matrix_sdk_ffi_fn_method_roompreview_leave(`ptr`: Pointer,
29452947
): Long
2948+
fun uniffi_matrix_sdk_ffi_fn_method_roompreview_own_membership_details(`ptr`: Pointer,
2949+
): Long
29462950
fun uniffi_matrix_sdk_ffi_fn_clone_sendattachmentjoinhandle(`ptr`: Pointer,uniffi_out_err: UniffiRustCallStatus,
29472951
): Pointer
29482952
fun uniffi_matrix_sdk_ffi_fn_free_sendattachmentjoinhandle(`ptr`: Pointer,uniffi_out_err: UniffiRustCallStatus,
@@ -4011,6 +4015,8 @@ internal interface UniffiLib : Library {
40114015
): Short
40124016
fun uniffi_matrix_sdk_ffi_checksum_method_roompreview_leave(
40134017
): Short
4018+
fun uniffi_matrix_sdk_ffi_checksum_method_roompreview_own_membership_details(
4019+
): Short
40144020
fun uniffi_matrix_sdk_ffi_checksum_method_sendattachmentjoinhandle_cancel(
40154021
): Short
40164022
fun uniffi_matrix_sdk_ffi_checksum_method_sendattachmentjoinhandle_join(
@@ -5195,6 +5201,9 @@ private fun uniffiCheckApiChecksums(lib: UniffiLib) {
51955201
if (lib.uniffi_matrix_sdk_ffi_checksum_method_roompreview_leave() != 5096.toShort()) {
51965202
throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
51975203
}
5204+
if (lib.uniffi_matrix_sdk_ffi_checksum_method_roompreview_own_membership_details() != 1443.toShort()) {
5205+
throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
5206+
}
51985207
if (lib.uniffi_matrix_sdk_ffi_checksum_method_sendattachmentjoinhandle_cancel() != 62384.toShort()) {
51995208
throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
52005209
}
@@ -18049,6 +18058,11 @@ public interface RoomPreviewInterface {
1804918058
*/
1805018059
suspend fun `leave`()
1805118060

18061+
/**
18062+
* Get the membership details for the current user.
18063+
*/
18064+
suspend fun `ownMembershipDetails`(): RoomMembershipDetails?
18065+
1805218066
companion object
1805318067
}
1805418068

@@ -18205,6 +18219,29 @@ open class RoomPreview: Disposable, AutoCloseable, RoomPreviewInterface {
1820518219
}
1820618220

1820718221

18222+
/**
18223+
* Get the membership details for the current user.
18224+
*/
18225+
@Suppress("ASSIGNED_BUT_NEVER_ACCESSED_VARIABLE")
18226+
override suspend fun `ownMembershipDetails`() : RoomMembershipDetails? {
18227+
return uniffiRustCallAsync(
18228+
callWithPointer { thisPtr ->
18229+
UniffiLib.INSTANCE.uniffi_matrix_sdk_ffi_fn_method_roompreview_own_membership_details(
18230+
thisPtr,
18231+
18232+
)
18233+
},
18234+
{ future, callback, continuation -> UniffiLib.INSTANCE.ffi_matrix_sdk_ffi_rust_future_poll_rust_buffer(future, callback, continuation) },
18235+
{ future, continuation -> UniffiLib.INSTANCE.ffi_matrix_sdk_ffi_rust_future_complete_rust_buffer(future, continuation) },
18236+
{ future -> UniffiLib.INSTANCE.ffi_matrix_sdk_ffi_rust_future_free_rust_buffer(future) },
18237+
// lift function
18238+
{ FfiConverterOptionalTypeRoomMembershipDetails.lift(it) },
18239+
// Error FFI converter
18240+
UniffiNullRustCallStatusErrorHandler,
18241+
)
18242+
}
18243+
18244+
1820818245

1820918246

1821018247

@@ -26428,7 +26465,8 @@ data class RoomMember (
2642826465
var `powerLevel`: kotlin.Long,
2642926466
var `normalizedPowerLevel`: kotlin.Long,
2643026467
var `isIgnored`: kotlin.Boolean,
26431-
var `suggestedRoleForPowerLevel`: RoomMemberRole
26468+
var `suggestedRoleForPowerLevel`: RoomMemberRole,
26469+
var `membershipChangeReason`: kotlin.String?
2643226470
) {
2643326471

2643426472
companion object
@@ -26446,6 +26484,7 @@ public object FfiConverterTypeRoomMember: FfiConverterRustBuffer<RoomMember> {
2644626484
FfiConverterLong.read(buf),
2644726485
FfiConverterBoolean.read(buf),
2644826486
FfiConverterTypeRoomMemberRole.read(buf),
26487+
FfiConverterOptionalString.read(buf),
2644926488
)
2645026489
}
2645126490

@@ -26458,7 +26497,8 @@ public object FfiConverterTypeRoomMember: FfiConverterRustBuffer<RoomMember> {
2645826497
FfiConverterLong.allocationSize(value.`powerLevel`) +
2645926498
FfiConverterLong.allocationSize(value.`normalizedPowerLevel`) +
2646026499
FfiConverterBoolean.allocationSize(value.`isIgnored`) +
26461-
FfiConverterTypeRoomMemberRole.allocationSize(value.`suggestedRoleForPowerLevel`)
26500+
FfiConverterTypeRoomMemberRole.allocationSize(value.`suggestedRoleForPowerLevel`) +
26501+
FfiConverterOptionalString.allocationSize(value.`membershipChangeReason`)
2646226502
)
2646326503

2646426504
override fun write(value: RoomMember, buf: ByteBuffer) {
@@ -26471,6 +26511,40 @@ public object FfiConverterTypeRoomMember: FfiConverterRustBuffer<RoomMember> {
2647126511
FfiConverterLong.write(value.`normalizedPowerLevel`, buf)
2647226512
FfiConverterBoolean.write(value.`isIgnored`, buf)
2647326513
FfiConverterTypeRoomMemberRole.write(value.`suggestedRoleForPowerLevel`, buf)
26514+
FfiConverterOptionalString.write(value.`membershipChangeReason`, buf)
26515+
}
26516+
}
26517+
26518+
26519+
26520+
/**
26521+
* Contains the current user's room member info and the optional room member
26522+
* info of the sender of the `m.room.member` event that this info represents.
26523+
*/
26524+
data class RoomMembershipDetails (
26525+
var `ownRoomMember`: RoomMember,
26526+
var `senderRoomMember`: RoomMember?
26527+
) {
26528+
26529+
companion object
26530+
}
26531+
26532+
public object FfiConverterTypeRoomMembershipDetails: FfiConverterRustBuffer<RoomMembershipDetails> {
26533+
override fun read(buf: ByteBuffer): RoomMembershipDetails {
26534+
return RoomMembershipDetails(
26535+
FfiConverterTypeRoomMember.read(buf),
26536+
FfiConverterOptionalTypeRoomMember.read(buf),
26537+
)
26538+
}
26539+
26540+
override fun allocationSize(value: RoomMembershipDetails) = (
26541+
FfiConverterTypeRoomMember.allocationSize(value.`ownRoomMember`) +
26542+
FfiConverterOptionalTypeRoomMember.allocationSize(value.`senderRoomMember`)
26543+
)
26544+
26545+
override fun write(value: RoomMembershipDetails, buf: ByteBuffer) {
26546+
FfiConverterTypeRoomMember.write(value.`ownRoomMember`, buf)
26547+
FfiConverterOptionalTypeRoomMember.write(value.`senderRoomMember`, buf)
2647426548
}
2647526549
}
2647626550

@@ -38600,6 +38674,35 @@ public object FfiConverterOptionalTypeRoomMember: FfiConverterRustBuffer<RoomMem
3860038674

3860138675

3860238676

38677+
public object FfiConverterOptionalTypeRoomMembershipDetails: FfiConverterRustBuffer<RoomMembershipDetails?> {
38678+
override fun read(buf: ByteBuffer): RoomMembershipDetails? {
38679+
if (buf.get().toInt() == 0) {
38680+
return null
38681+
}
38682+
return FfiConverterTypeRoomMembershipDetails.read(buf)
38683+
}
38684+
38685+
override fun allocationSize(value: RoomMembershipDetails?): ULong {
38686+
if (value == null) {
38687+
return 1UL
38688+
} else {
38689+
return 1UL + FfiConverterTypeRoomMembershipDetails.allocationSize(value)
38690+
}
38691+
}
38692+
38693+
override fun write(value: RoomMembershipDetails?, buf: ByteBuffer) {
38694+
if (value == null) {
38695+
buf.put(0)
38696+
} else {
38697+
buf.put(1)
38698+
FfiConverterTypeRoomMembershipDetails.write(value, buf)
38699+
}
38700+
}
38701+
}
38702+
38703+
38704+
38705+
3860338706
public object FfiConverterOptionalTypeSetData: FfiConverterRustBuffer<SetData?> {
3860438707
override fun read(buf: ByteBuffer): SetData? {
3860538708
if (buf.get().toInt() == 0) {

0 commit comments

Comments
 (0)