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