Skip to content

Commit f81a4bf

Browse files
author
Marco Romano
authored
Upgrade Rust SDK to v0.1.57 (#1401)
- Enables polls in room summaries from #1387 - Accommodates a few breaking changes
1 parent 3ff7c62 commit f81a4bf

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

gradle/libs.versions.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ jsoup = { module = "org.jsoup:jsoup", version.ref = "jsoup" }
150150
appyx_core = { module = "com.bumble.appyx:core", version.ref = "appyx" }
151151
molecule-runtime = { module = "app.cash.molecule:molecule-runtime", version.ref = "molecule" }
152152
timber = "com.jakewharton.timber:timber:5.0.1"
153-
matrix_sdk = "org.matrix.rustcomponents:sdk-android:0.1.56"
153+
matrix_sdk = "org.matrix.rustcomponents:sdk-android:0.1.57"
154154
matrix_richtexteditor = { module = "io.element.android:wysiwyg", version.ref = "wysiwyg" }
155155
matrix_richtexteditor_compose = { module = "io.element.android:wysiwyg-compose", version.ref = "wysiwyg" }
156156
sqldelight-driver-android = { module = "com.squareup.sqldelight:android-driver", version.ref = "sqldelight" }

libraries/matrix/impl/src/main/kotlin/io/element/android/libraries/matrix/impl/RustMatrixClient.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ class RustMatrixClient constructor(
191191

192192
private fun pairOfRoom(roomId: RoomId): Pair<RoomListItem, Room>? {
193193
val cachedRoomListItem = innerRoomListService.roomOrNull(roomId.value)
194-
val fullRoom = cachedRoomListItem?.fullRoom()
194+
val fullRoom = cachedRoomListItem?.fullRoomBlocking()
195195
return if (cachedRoomListItem == null || fullRoom == null) {
196196
Timber.d("No room cached for $roomId")
197197
null

libraries/matrix/impl/src/main/kotlin/io/element/android/libraries/matrix/impl/room/RustMatrixRoom.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -371,7 +371,7 @@ class RustMatrixRoom(
371371
@OptIn(ExperimentalUnsignedTypes::class)
372372
override suspend fun updateAvatar(mimeType: String, data: ByteArray): Result<Unit> = withContext(roomDispatcher) {
373373
runCatching {
374-
innerRoom.uploadAvatar(mimeType, data.toUByteArray().toList())
374+
innerRoom.uploadAvatar(mimeType, data.toUByteArray().toList(), null)
375375
}
376376
}
377377

0 commit comments

Comments
 (0)