Update dependency org.matrix.rustcomponents:sdk-android to v25.7.28 (#5088)
* Update dependency org.matrix.rustcomponents:sdk-android to v25.7.28 * Adapt to SDK changes * Remove Sonatype repos: use Maven Central instead --------- 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
dc2bc71d26
commit
6017379ecc
8 changed files with 26 additions and 18 deletions
|
|
@ -71,6 +71,8 @@ class RoomInfoMapper {
|
|||
numUnreadNotifications = it.numUnreadNotifications.toLong(),
|
||||
historyVisibility = it.historyVisibility.map(),
|
||||
successorRoom = it.successorRoom?.map(),
|
||||
roomVersion = it.roomVersion,
|
||||
privilegedCreatorRole = it.privilegedCreatorsRole,
|
||||
)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -55,6 +55,8 @@ fun aRustRoomInfo(
|
|||
joinRule: JoinRule? = null,
|
||||
historyVisibility: RoomHistoryVisibility = RoomHistoryVisibility.Joined,
|
||||
successorRoom: SuccessorRoom? = null,
|
||||
roomVersion: String? = "11",
|
||||
privilegedCreatorsRole: Boolean = false,
|
||||
) = RoomInfo(
|
||||
id = id,
|
||||
displayName = displayName,
|
||||
|
|
@ -89,4 +91,6 @@ fun aRustRoomInfo(
|
|||
joinRule = joinRule,
|
||||
historyVisibility = historyVisibility,
|
||||
successorRoom = successorRoom,
|
||||
roomVersion = roomVersion,
|
||||
privilegedCreatorsRole = privilegedCreatorsRole,
|
||||
)
|
||||
|
|
|
|||
|
|
@ -81,6 +81,8 @@ class RoomInfoMapperTest {
|
|||
pinnedEventIds = listOf(AN_EVENT_ID.value),
|
||||
roomCreators = listOf(A_USER_ID.value),
|
||||
historyVisibility = RustRoomHistoryVisibility.Joined,
|
||||
roomVersion = "12",
|
||||
privilegedCreatorsRole = true,
|
||||
)
|
||||
)
|
||||
).isEqualTo(
|
||||
|
|
@ -126,7 +128,9 @@ class RoomInfoMapperTest {
|
|||
numUnreadNotifications = 13L,
|
||||
numUnreadMentions = 14L,
|
||||
historyVisibility = RoomHistoryVisibility.Joined,
|
||||
successorRoom = null
|
||||
successorRoom = null,
|
||||
roomVersion = "12",
|
||||
privilegedCreatorRole = true,
|
||||
)
|
||||
)
|
||||
}
|
||||
|
|
@ -168,6 +172,8 @@ class RoomInfoMapperTest {
|
|||
numUnreadMentions = 14uL,
|
||||
pinnedEventIds = emptyList(),
|
||||
roomCreators = null,
|
||||
roomVersion = "12",
|
||||
privilegedCreatorsRole = true,
|
||||
)
|
||||
)
|
||||
).isEqualTo(
|
||||
|
|
@ -208,6 +214,8 @@ class RoomInfoMapperTest {
|
|||
numUnreadNotifications = 13L,
|
||||
numUnreadMentions = 14L,
|
||||
historyVisibility = RoomHistoryVisibility.Joined,
|
||||
roomVersion = "12",
|
||||
privilegedCreatorRole = true,
|
||||
)
|
||||
)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue