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:
+1
@@ -74,6 +74,7 @@ class RoomInfoMapper {
|
||||
successorRoom = it.successorRoom?.map(),
|
||||
roomVersion = it.roomVersion,
|
||||
privilegedCreatorRole = it.privilegedCreatorsRole,
|
||||
isLowPriority = it.isLowPriority,
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
+2
@@ -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,
|
||||
)
|
||||
|
||||
+4
@@ -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,
|
||||
)
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user