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:
parent
989201eb68
commit
7e42dd1529
9 changed files with 15 additions and 1 deletions
|
|
@ -140,6 +140,7 @@ private fun aSpaceInfo(
|
|||
privilegedCreatorRole = false,
|
||||
isLowPriority = false,
|
||||
activeCallIntentConsensus = CallIntentConsensus.None,
|
||||
fullyReadEventId = null,
|
||||
)
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -179,7 +179,7 @@ test_detekt_test = { module = "io.gitlab.arturbosch.detekt:detekt-test", version
|
|||
# https://github.com/matrix-org/matrix-rust-components-kotlin/commits/main/sdk/sdk-android/src/main/kotlin/org/matrix/rustcomponents/sdk/matrix_sdk_ffi.kt
|
||||
# All new features should not be implemented in the pull request that upgrades the version, developers should
|
||||
# only fix API breaks and may add some TODOs.
|
||||
matrix_sdk = "org.matrix.rustcomponents:sdk-android:26.05.18"
|
||||
matrix_sdk = "org.matrix.rustcomponents:sdk-android:26.05.20"
|
||||
|
||||
# Others
|
||||
coil = { module = "io.coil-kt.coil3:coil", version.ref = "coil" }
|
||||
|
|
|
|||
|
|
@ -79,6 +79,7 @@ data class RoomInfo(
|
|||
val privilegedCreatorRole: Boolean,
|
||||
val isLowPriority: Boolean,
|
||||
val activeCallIntentConsensus: CallIntentConsensus,
|
||||
val fullyReadEventId: EventId?,
|
||||
) {
|
||||
val aliases: List<RoomAlias>
|
||||
get() = listOfNotNull(canonicalAlias) + alternativeAliases
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -77,6 +77,7 @@ class RoomInfoMapper {
|
|||
privilegedCreatorRole = it.privilegedCreatorsRole,
|
||||
isLowPriority = it.isLowPriority,
|
||||
activeCallIntentConsensus = it.activeRoomCallConsensusIntent.map(),
|
||||
fullyReadEventId = it.fullyReadEventId?.let(::EventId)
|
||||
)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
)
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
)
|
||||
)
|
||||
}
|
||||
|
|
|
|||
|
|
@ -72,6 +72,7 @@ fun aRoomInfo(
|
|||
isLowPriority: Boolean = false,
|
||||
activeCallIntentConsensus: CallIntentConsensus = CallIntentConsensus.None,
|
||||
isDm: Boolean = false,
|
||||
fullyReadEventId: EventId? = null,
|
||||
) = RoomInfo(
|
||||
id = id,
|
||||
name = name,
|
||||
|
|
@ -111,4 +112,5 @@ fun aRoomInfo(
|
|||
isLowPriority = isLowPriority,
|
||||
activeCallIntentConsensus = activeCallIntentConsensus,
|
||||
isDm = isDm,
|
||||
fullyReadEventId = fullyReadEventId,
|
||||
)
|
||||
|
|
|
|||
|
|
@ -81,6 +81,7 @@ fun aRoomSummary(
|
|||
privilegedCreatorRole: Boolean = false,
|
||||
isLowPriority: Boolean = false,
|
||||
activeCallIntentConsensus: CallIntentConsensus = CallIntentConsensus.None,
|
||||
fullyReadEventId: EventId? = null,
|
||||
) = RoomSummary(
|
||||
info = RoomInfo(
|
||||
id = roomId,
|
||||
|
|
@ -121,6 +122,7 @@ fun aRoomSummary(
|
|||
isLowPriority = isLowPriority,
|
||||
activeCallIntentConsensus = activeCallIntentConsensus,
|
||||
isDm = false,
|
||||
fullyReadEventId = fullyReadEventId,
|
||||
),
|
||||
latestEvent = latestEvent,
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue