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:
parent
3ff7c62c14
commit
f81a4bf0f8
3 changed files with 3 additions and 3 deletions
|
|
@ -191,7 +191,7 @@ class RustMatrixClient constructor(
|
|||
|
||||
private fun pairOfRoom(roomId: RoomId): Pair<RoomListItem, Room>? {
|
||||
val cachedRoomListItem = innerRoomListService.roomOrNull(roomId.value)
|
||||
val fullRoom = cachedRoomListItem?.fullRoom()
|
||||
val fullRoom = cachedRoomListItem?.fullRoomBlocking()
|
||||
return if (cachedRoomListItem == null || fullRoom == null) {
|
||||
Timber.d("No room cached for $roomId")
|
||||
null
|
||||
|
|
|
|||
|
|
@ -371,7 +371,7 @@ class RustMatrixRoom(
|
|||
@OptIn(ExperimentalUnsignedTypes::class)
|
||||
override suspend fun updateAvatar(mimeType: String, data: ByteArray): Result<Unit> = withContext(roomDispatcher) {
|
||||
runCatching {
|
||||
innerRoom.uploadAvatar(mimeType, data.toUByteArray().toList())
|
||||
innerRoom.uploadAvatar(mimeType, data.toUByteArray().toList(), null)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue