mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-02 12:07:28 +00:00
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:
+1
@@ -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)
|
||||
|
||||
+1
@@ -77,6 +77,7 @@ class RoomInfoMapper {
|
||||
privilegedCreatorRole = it.privilegedCreatorsRole,
|
||||
isLowPriority = it.isLowPriority,
|
||||
activeCallIntentConsensus = it.activeRoomCallConsensusIntent.map(),
|
||||
fullyReadEventId = it.fullyReadEventId?.let(::EventId)
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
+2
@@ -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,
|
||||
)
|
||||
|
||||
+4
@@ -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,
|
||||
)
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user