Update dependency org.matrix.rustcomponents:sdk-android to v26.05.20 (#6831)

* Update dependency org.matrix.rustcomponents:sdk-android to v26.05.20

* Fix API breaks:

- Handle new `ClientBuildException.InvalidRawKey` variant.
- `RoomInfo` now has a `fullyReadEventId` .

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Jorge Martín <jorgem@element.io>
This commit is contained in:
renovate[bot] 2026-05-21 12:27:29 +02:00 committed by GitHub
parent 989201eb68
commit 7e42dd1529
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 15 additions and 1 deletions

View file

@ -28,6 +28,7 @@ fun Throwable.mapAuthenticationException(): AuthenticationException {
}
is ClientBuildException.WellKnownLookupFailed -> AuthenticationException.Generic(message)
is ClientBuildException.EventCache -> AuthenticationException.Generic(message)
is ClientBuildException.InvalidRawKey -> AuthenticationException.Generic(message)
}
is OAuthException -> when (this) {
is OAuthException.Generic -> AuthenticationException.OAuth(message)

View file

@ -77,6 +77,7 @@ class RoomInfoMapper {
privilegedCreatorRole = it.privilegedCreatorsRole,
isLowPriority = it.isLowPriority,
activeCallIntentConsensus = it.activeRoomCallConsensusIntent.map(),
fullyReadEventId = it.fullyReadEventId?.let(::EventId)
)
}
}

View file

@ -64,6 +64,7 @@ internal fun aRustRoomInfo(
activeRoomCallConsensusIntent: RtcCallIntentConsensus = RtcCallIntentConsensus.None,
activeServiceMembersCount: Int = 0,
isDm: Boolean = false,
fullyReadEventId: String? = null,
) = RoomInfo(
id = id,
displayName = displayName,
@ -105,4 +106,5 @@ internal fun aRustRoomInfo(
activeRoomCallConsensusIntent = activeRoomCallConsensusIntent,
activeServiceMembersCount = activeServiceMembersCount.toULong(),
isDm = isDm,
fullyReadEventId = fullyReadEventId,
)

View file

@ -87,6 +87,7 @@ class RoomInfoMapperTest {
isLowPriority = true,
activeRoomCallConsensusIntent = RtcCallIntentConsensus.Full(RtcCallIntent.AUDIO),
isDm = true,
fullyReadEventId = AN_EVENT_ID.value,
)
)
).isEqualTo(
@ -138,6 +139,7 @@ class RoomInfoMapperTest {
isLowPriority = true,
activeCallIntentConsensus = CallIntentConsensus.Full(CallIntent.AUDIO),
isDm = true,
fullyReadEventId = AN_EVENT_ID,
)
)
}
@ -184,6 +186,7 @@ class RoomInfoMapperTest {
isLowPriority = true,
activeRoomCallConsensusIntent = RtcCallIntentConsensus.None,
isDm = false,
fullyReadEventId = AN_EVENT_ID.value,
)
)
).isEqualTo(
@ -229,6 +232,7 @@ class RoomInfoMapperTest {
isLowPriority = true,
activeCallIntentConsensus = CallIntentConsensus.None,
isDm = false,
fullyReadEventId = AN_EVENT_ID,
)
)
}