mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-03 06:55:41 +00:00
Upgrade Rust SDK to v0.1.57 (#1401)
- Enables polls in room summaries from https://github.com/vector-im/element-x-android/pull/1387 - Accommodates a few breaking changes
This commit is contained in:
@@ -150,7 +150,7 @@ jsoup = { module = "org.jsoup:jsoup", version.ref = "jsoup" }
|
|||||||
appyx_core = { module = "com.bumble.appyx:core", version.ref = "appyx" }
|
appyx_core = { module = "com.bumble.appyx:core", version.ref = "appyx" }
|
||||||
molecule-runtime = { module = "app.cash.molecule:molecule-runtime", version.ref = "molecule" }
|
molecule-runtime = { module = "app.cash.molecule:molecule-runtime", version.ref = "molecule" }
|
||||||
timber = "com.jakewharton.timber:timber:5.0.1"
|
timber = "com.jakewharton.timber:timber:5.0.1"
|
||||||
matrix_sdk = "org.matrix.rustcomponents:sdk-android:0.1.56"
|
matrix_sdk = "org.matrix.rustcomponents:sdk-android:0.1.57"
|
||||||
matrix_richtexteditor = { module = "io.element.android:wysiwyg", version.ref = "wysiwyg" }
|
matrix_richtexteditor = { module = "io.element.android:wysiwyg", version.ref = "wysiwyg" }
|
||||||
matrix_richtexteditor_compose = { module = "io.element.android:wysiwyg-compose", version.ref = "wysiwyg" }
|
matrix_richtexteditor_compose = { module = "io.element.android:wysiwyg-compose", version.ref = "wysiwyg" }
|
||||||
sqldelight-driver-android = { module = "com.squareup.sqldelight:android-driver", version.ref = "sqldelight" }
|
sqldelight-driver-android = { module = "com.squareup.sqldelight:android-driver", version.ref = "sqldelight" }
|
||||||
|
|||||||
+1
-1
@@ -191,7 +191,7 @@ class RustMatrixClient constructor(
|
|||||||
|
|
||||||
private fun pairOfRoom(roomId: RoomId): Pair<RoomListItem, Room>? {
|
private fun pairOfRoom(roomId: RoomId): Pair<RoomListItem, Room>? {
|
||||||
val cachedRoomListItem = innerRoomListService.roomOrNull(roomId.value)
|
val cachedRoomListItem = innerRoomListService.roomOrNull(roomId.value)
|
||||||
val fullRoom = cachedRoomListItem?.fullRoom()
|
val fullRoom = cachedRoomListItem?.fullRoomBlocking()
|
||||||
return if (cachedRoomListItem == null || fullRoom == null) {
|
return if (cachedRoomListItem == null || fullRoom == null) {
|
||||||
Timber.d("No room cached for $roomId")
|
Timber.d("No room cached for $roomId")
|
||||||
null
|
null
|
||||||
|
|||||||
+1
-1
@@ -371,7 +371,7 @@ class RustMatrixRoom(
|
|||||||
@OptIn(ExperimentalUnsignedTypes::class)
|
@OptIn(ExperimentalUnsignedTypes::class)
|
||||||
override suspend fun updateAvatar(mimeType: String, data: ByteArray): Result<Unit> = withContext(roomDispatcher) {
|
override suspend fun updateAvatar(mimeType: String, data: ByteArray): Result<Unit> = withContext(roomDispatcher) {
|
||||||
runCatching {
|
runCatching {
|
||||||
innerRoom.uploadAvatar(mimeType, data.toUByteArray().toList())
|
innerRoom.uploadAvatar(mimeType, data.toUByteArray().toList(), null)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user