Update dependency org.matrix.rustcomponents:sdk-android to v26.02.19 (#6229)
* Update dependency org.matrix.rustcomponents:sdk-android to v26.02.19 * Fix breaking API changes: added `isLowPriority` to `RoomInfo` and `RoomSummary`. --------- 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:
@@ -136,6 +136,7 @@ private fun aSpaceInfo(
|
||||
successorRoom = null,
|
||||
roomVersion = "11",
|
||||
privilegedCreatorRole = false,
|
||||
isLowPriority = false,
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
@@ -176,7 +176,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.2.16"
|
||||
matrix_sdk = "org.matrix.rustcomponents:sdk-android:26.02.19"
|
||||
|
||||
# Others
|
||||
coil = { module = "io.coil-kt.coil3:coil", version.ref = "coil" }
|
||||
|
||||
@@ -76,6 +76,7 @@ data class RoomInfo(
|
||||
val successorRoom: SuccessorRoom?,
|
||||
val roomVersion: String?,
|
||||
val privilegedCreatorRole: Boolean,
|
||||
val isLowPriority: Boolean,
|
||||
) {
|
||||
val aliases: List<RoomAlias>
|
||||
get() = listOfNotNull(canonicalAlias) + alternativeAliases
|
||||
|
||||
@@ -74,6 +74,7 @@ class RoomInfoMapper {
|
||||
successorRoom = it.successorRoom?.map(),
|
||||
roomVersion = it.roomVersion,
|
||||
privilegedCreatorRole = it.privilegedCreatorsRole,
|
||||
isLowPriority = it.isLowPriority,
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -59,6 +59,7 @@ internal fun aRustRoomInfo(
|
||||
roomVersion: String? = "11",
|
||||
privilegedCreatorsRole: Boolean = false,
|
||||
serviceMembers: List<String> = emptyList(),
|
||||
isLowPriority: Boolean = false,
|
||||
) = RoomInfo(
|
||||
id = id,
|
||||
displayName = displayName,
|
||||
@@ -96,4 +97,5 @@ internal fun aRustRoomInfo(
|
||||
roomVersion = roomVersion,
|
||||
privilegedCreatorsRole = privilegedCreatorsRole,
|
||||
serviceMembers = serviceMembers,
|
||||
isLowPriority = isLowPriority,
|
||||
)
|
||||
|
||||
@@ -80,6 +80,7 @@ class RoomInfoMapperTest {
|
||||
historyVisibility = RustRoomHistoryVisibility.Joined,
|
||||
roomVersion = "12",
|
||||
privilegedCreatorsRole = true,
|
||||
isLowPriority = true,
|
||||
)
|
||||
)
|
||||
).isEqualTo(
|
||||
@@ -128,6 +129,7 @@ class RoomInfoMapperTest {
|
||||
successorRoom = null,
|
||||
roomVersion = "12",
|
||||
privilegedCreatorRole = true,
|
||||
isLowPriority = true,
|
||||
)
|
||||
)
|
||||
}
|
||||
@@ -171,6 +173,7 @@ class RoomInfoMapperTest {
|
||||
roomCreators = null,
|
||||
roomVersion = "12",
|
||||
privilegedCreatorsRole = true,
|
||||
isLowPriority = true,
|
||||
)
|
||||
)
|
||||
).isEqualTo(
|
||||
@@ -213,6 +216,7 @@ class RoomInfoMapperTest {
|
||||
historyVisibility = RoomHistoryVisibility.Joined,
|
||||
roomVersion = "12",
|
||||
privilegedCreatorRole = true,
|
||||
isLowPriority = true,
|
||||
)
|
||||
)
|
||||
}
|
||||
|
||||
@@ -68,6 +68,7 @@ fun aRoomInfo(
|
||||
historyVisibility: RoomHistoryVisibility = RoomHistoryVisibility.Joined,
|
||||
roomVersion: String? = "11",
|
||||
privilegedCreatorRole: Boolean = false,
|
||||
isLowPriority: Boolean = false,
|
||||
) = RoomInfo(
|
||||
id = id,
|
||||
name = name,
|
||||
@@ -104,4 +105,5 @@ fun aRoomInfo(
|
||||
historyVisibility = historyVisibility,
|
||||
roomVersion = roomVersion,
|
||||
privilegedCreatorRole = privilegedCreatorRole,
|
||||
isLowPriority = isLowPriority,
|
||||
)
|
||||
|
||||
@@ -78,6 +78,7 @@ fun aRoomSummary(
|
||||
latestEvent: LatestEventValue = aRemoteLatestEvent(),
|
||||
roomVersion: String? = "11",
|
||||
privilegedCreatorRole: Boolean = false,
|
||||
isLowPriority: Boolean = false,
|
||||
) = RoomSummary(
|
||||
info = RoomInfo(
|
||||
id = roomId,
|
||||
@@ -115,6 +116,7 @@ fun aRoomSummary(
|
||||
historyVisibility = historyVisibility,
|
||||
roomVersion = roomVersion,
|
||||
privilegedCreatorRole = privilegedCreatorRole,
|
||||
isLowPriority = isLowPriority,
|
||||
),
|
||||
latestEvent = latestEvent,
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user