Skip to content

Commit 08ce331

Browse files
committed
chore: update matrix-rust-sdk to 0.16.0
1 parent 33486a2 commit 08ce331

17 files changed

Lines changed: 30894 additions & 7735 deletions

File tree

android/src/main/java/org/matrix/rustcomponents/sdk/matrix_sdk_ffi.kt

Lines changed: 6966 additions & 1349 deletions
Large diffs are not rendered by default.

android/src/main/java/uniffi/matrix_sdk/matrix_sdk.kt

Lines changed: 191 additions & 108 deletions
Large diffs are not rendered by default.

android/src/main/java/uniffi/matrix_sdk_base/matrix_sdk_base.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1100,7 +1100,7 @@ public object FfiConverterDuration: FfiConverterRustBuffer<java.time.Duration> {
11001100

11011101

11021102
/**
1103-
* The retention policy for media content used by the [`EventCacheStore`].
1103+
* The retention policy for media content used by the [`MediaStore`].
11041104
*
11051105
* [`EventCacheStore`]: crate::event_cache::store::EventCacheStore
11061106
*/

android/src/main/java/uniffi/matrix_sdk_ui/matrix_sdk_ui.kt

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1210,3 +1210,46 @@ public object FfiConverterTypeSpaceRoomListPaginationState : FfiConverterRustBuf
12101210

12111211

12121212

1213+
1214+
1215+
/**
1216+
* The level of read receipt tracking for the timeline.
1217+
*/
1218+
1219+
enum class TimelineReadReceiptTracking {
1220+
1221+
/**
1222+
* Track read receipts for all events.
1223+
*/
1224+
ALL_EVENTS,
1225+
/**
1226+
* Track read receipts only for message-like events.
1227+
*/
1228+
MESSAGE_LIKE_EVENTS,
1229+
/**
1230+
* Disable read receipt tracking.
1231+
*/
1232+
DISABLED;
1233+
companion object
1234+
}
1235+
1236+
1237+
/**
1238+
* @suppress
1239+
*/
1240+
public object FfiConverterTypeTimelineReadReceiptTracking: FfiConverterRustBuffer<TimelineReadReceiptTracking> {
1241+
override fun read(buf: ByteBuffer) = try {
1242+
TimelineReadReceiptTracking.values()[buf.getInt() - 1]
1243+
} catch (e: IndexOutOfBoundsException) {
1244+
throw RuntimeException("invalid enum value, something is very wrong!!", e)
1245+
}
1246+
1247+
override fun allocationSize(value: TimelineReadReceiptTracking) = 4UL
1248+
1249+
override fun write(value: TimelineReadReceiptTracking, buf: ByteBuffer) {
1250+
buf.putInt(value.ordinal + 1)
1251+
}
1252+
}
1253+
1254+
1255+

cpp/generated/matrix_sdk_ffi.cpp

Lines changed: 6420 additions & 1300 deletions
Large diffs are not rendered by default.

cpp/generated/matrix_sdk_ffi.hpp

Lines changed: 413 additions & 37 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)