WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Commit 982bb92

Browse files
runnerrunner
authored andcommitted
Bump SDK version to 0.1.35 (matrix-rust-sdk to 04aac7bc1386e19264a78a8151ffda2b05e30954)
1 parent b1b7b9e commit 982bb92

File tree

2 files changed

+15
-13
lines changed

2 files changed

+15
-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 = 0
33
const val minorVersion = 1
4-
const val patchVersion = 34
4+
const val patchVersion = 35
55
}

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

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -628,7 +628,7 @@ internal interface _UniFFILib : Library {
628628
fun uniffi_matrix_sdk_ffi_fn_method_room_fetch_details_for_event(`ptr`: Pointer,`eventId`: RustBuffer.ByValue,_uniffi_out_err: RustCallStatus,
629629
): Unit
630630
fun uniffi_matrix_sdk_ffi_fn_method_room_fetch_members(`ptr`: Pointer,_uniffi_out_err: RustCallStatus,
631-
): Unit
631+
): Pointer
632632
fun uniffi_matrix_sdk_ffi_fn_method_room_get_timeline_event_content_by_event_id(`ptr`: Pointer,`eventId`: RustBuffer.ByValue,_uniffi_out_err: RustCallStatus,
633633
): Pointer
634634
fun uniffi_matrix_sdk_ffi_fn_method_room_id(`ptr`: Pointer,_uniffi_out_err: RustCallStatus,
@@ -1826,7 +1826,7 @@ private fun uniffiCheckApiChecksums(lib: _UniFFILib) {
18261826
if (lib.uniffi_matrix_sdk_ffi_checksum_method_room_fetch_details_for_event() != 23233.toShort()) {
18271827
throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
18281828
}
1829-
if (lib.uniffi_matrix_sdk_ffi_checksum_method_room_fetch_members() != 22527.toShort()) {
1829+
if (lib.uniffi_matrix_sdk_ffi_checksum_method_room_fetch_members() != 63440.toShort()) {
18301830
throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
18311831
}
18321832
if (lib.uniffi_matrix_sdk_ffi_checksum_method_room_get_timeline_event_content_by_event_id() != 14169.toShort()) {
@@ -4608,8 +4608,8 @@ public interface RoomInterface {
46084608
fun `canonicalAlias`(): String?@Throws(ClientException::class)
46094609
fun `displayName`(): String@Throws(ClientException::class)
46104610
fun `edit`(`newMsg`: String, `originalEventId`: String, `txnId`: String?)@Throws(ClientException::class)
4611-
fun `fetchDetailsForEvent`(`eventId`: String)
4612-
fun `fetchMembers`()@Throws(ClientException::class)
4611+
fun `fetchDetailsForEvent`(`eventId`: String)@Throws(ClientException::class)
4612+
fun `fetchMembers`(): TaskHandle@Throws(ClientException::class)
46134613
fun `getTimelineEventContentByEventId`(`eventId`: String): RoomMessageEventContent
46144614
fun `id`(): String@Throws(ClientException::class)
46154615
fun `ignoreUser`(`userId`: String)@Throws(ClientException::class)
@@ -5032,17 +5032,19 @@ class Room(
50325032
}
50335033

50345034

5035-
override fun `fetchMembers`() =
5035+
5036+
@Throws(ClientException::class)override fun `fetchMembers`(): TaskHandle =
50365037
callWithPointer {
5037-
rustCall() { _status ->
5038+
rustCallWithError(ClientException) { _status ->
50385039
_UniFFILib.INSTANCE.uniffi_matrix_sdk_ffi_fn_method_room_fetch_members(it,
50395040

50405041
_status)
50415042
}
5043+
}.let {
5044+
FfiConverterTypeTaskHandle.lift(it)
50425045
}
50435046

50445047

5045-
50465048
@Throws(ClientException::class)override fun `getTimelineEventContentByEventId`(`eventId`: String): RoomMessageEventContent =
50475049
callWithPointer {
50485050
rustCallWithError(ClientException) { _status ->
@@ -10866,7 +10868,7 @@ sealed class RepliedToEventDetails: Disposable {
1086610868
object Pending : RepliedToEventDetails()
1086710869

1086810870
data class Ready(
10869-
val `message`: Message,
10871+
val `content`: TimelineItemContent,
1087010872
val `sender`: String,
1087110873
val `senderProfile`: ProfileDetails
1087210874
) : RepliedToEventDetails()
@@ -10886,7 +10888,7 @@ sealed class RepliedToEventDetails: Disposable {
1088610888
is RepliedToEventDetails.Ready -> {
1088710889

1088810890
Disposable.destroy(
10889-
this.`message`,
10891+
this.`content`,
1089010892
this.`sender`,
1089110893
this.`senderProfile`)
1089210894

@@ -10908,7 +10910,7 @@ public object FfiConverterTypeRepliedToEventDetails : FfiConverterRustBuffer<Rep
1090810910
1 -> RepliedToEventDetails.Unavailable
1090910911
2 -> RepliedToEventDetails.Pending
1091010912
3 -> RepliedToEventDetails.Ready(
10911-
FfiConverterTypeMessage.read(buf),
10913+
FfiConverterTypeTimelineItemContent.read(buf),
1091210914
FfiConverterString.read(buf),
1091310915
FfiConverterTypeProfileDetails.read(buf),
1091410916
)
@@ -10936,7 +10938,7 @@ public object FfiConverterTypeRepliedToEventDetails : FfiConverterRustBuffer<Rep
1093610938
// Add the size for the Int that specifies the variant plus the size needed for all fields
1093710939
(
1093810940
4
10939-
+ FfiConverterTypeMessage.allocationSize(value.`message`)
10941+
+ FfiConverterTypeTimelineItemContent.allocationSize(value.`content`)
1094010942
+ FfiConverterString.allocationSize(value.`sender`)
1094110943
+ FfiConverterTypeProfileDetails.allocationSize(value.`senderProfile`)
1094210944
)
@@ -10962,7 +10964,7 @@ public object FfiConverterTypeRepliedToEventDetails : FfiConverterRustBuffer<Rep
1096210964
}
1096310965
is RepliedToEventDetails.Ready -> {
1096410966
buf.putInt(3)
10965-
FfiConverterTypeMessage.write(value.`message`, buf)
10967+
FfiConverterTypeTimelineItemContent.write(value.`content`, buf)
1096610968
FfiConverterString.write(value.`sender`, buf)
1096710969
FfiConverterTypeProfileDetails.write(value.`senderProfile`, buf)
1096810970
Unit

0 commit comments

Comments
 (0)