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 7b06eb5

Browse files
runnerrunner
authored andcommitted
Bump SDK version to 0.1.14 (matrix-rust-sdk to 18954a6ba57a6bfb5a42a58e65e5935a79cd40fa)
1 parent 889cd06 commit 7b06eb5

File tree

2 files changed

+19
-1
lines changed

2 files changed

+19
-1
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 = 13
4+
const val patchVersion = 14
55
}

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

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -641,6 +641,8 @@ internal interface _UniFFILib : Library {
641641
): Long
642642
fun uniffi_matrix_sdk_ffi_fn_method_room_leave(`ptr`: Pointer,_uniffi_out_err: RustCallStatus,
643643
): Unit
644+
fun uniffi_matrix_sdk_ffi_fn_method_room_member(`ptr`: Pointer,`userId`: RustBuffer.ByValue,_uniffi_out_err: RustCallStatus,
645+
): Pointer
644646
fun uniffi_matrix_sdk_ffi_fn_method_room_members(`ptr`: Pointer,_uniffi_out_err: RustCallStatus,
645647
): RustBuffer.ByValue
646648
fun uniffi_matrix_sdk_ffi_fn_method_room_membership(`ptr`: Pointer,_uniffi_out_err: RustCallStatus,
@@ -1155,6 +1157,8 @@ internal interface _UniFFILib : Library {
11551157
): Short
11561158
fun uniffi_matrix_sdk_ffi_checksum_method_room_leave(
11571159
): Short
1160+
fun uniffi_matrix_sdk_ffi_checksum_method_room_member(
1161+
): Short
11581162
fun uniffi_matrix_sdk_ffi_checksum_method_room_members(
11591163
): Short
11601164
fun uniffi_matrix_sdk_ffi_checksum_method_room_membership(
@@ -1795,6 +1799,9 @@ private fun uniffiCheckApiChecksums(lib: _UniFFILib) {
17951799
if (lib.uniffi_matrix_sdk_ffi_checksum_method_room_leave() != 32484.toShort()) {
17961800
throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
17971801
}
1802+
if (lib.uniffi_matrix_sdk_ffi_checksum_method_room_member() != 63311.toShort()) {
1803+
throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
1804+
}
17981805
if (lib.uniffi_matrix_sdk_ffi_checksum_method_room_members() != 28201.toShort()) {
17991806
throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
18001807
}
@@ -3523,6 +3530,7 @@ public interface RoomInterface {
35233530
fun `isTombstoned`(): Boolean
35243531
fun `joinedMembersCount`(): ULong@Throws(ClientException::class)
35253532
fun `leave`()@Throws(ClientException::class)
3533+
fun `member`(`userId`: String): RoomMember@Throws(ClientException::class)
35263534
fun `members`(): List<RoomMember>
35273535
fun `membership`(): Membership@Throws(ClientException::class)
35283536
fun `memberAvatarUrl`(`userId`: String): String?@Throws(ClientException::class)
@@ -3767,6 +3775,16 @@ class Room(
37673775

37683776

37693777

3778+
@Throws(ClientException::class)override fun `member`(`userId`: String): RoomMember =
3779+
callWithPointer {
3780+
rustCallWithError(ClientException) { _status ->
3781+
_UniFFILib.INSTANCE.uniffi_matrix_sdk_ffi_fn_method_room_member(it, FfiConverterString.lower(`userId`), _status)
3782+
}
3783+
}.let {
3784+
FfiConverterTypeRoomMember.lift(it)
3785+
}
3786+
3787+
37703788
@Throws(ClientException::class)override fun `members`(): List<RoomMember> =
37713789
callWithPointer {
37723790
rustCallWithError(ClientException) { _status ->

0 commit comments

Comments
 (0)