Change related to Epoxy 4.6.0 upgrade - step 1.1: handle DSL restriction, other error
This commit is contained in:
parent
a0d04c40e9
commit
9a9edd979d
|
@ -140,7 +140,7 @@ class RoomMemberListController @Inject constructor(
|
|||
?.let { content ->
|
||||
profileMatrixItem {
|
||||
id("3pid_$idx")
|
||||
matrixItem(content.toMatrixItem())
|
||||
matrixItem(MatrixItem.UserItem("@", displayName = content.displayName))
|
||||
avatarRenderer(host.avatarRenderer)
|
||||
editable(data.actionsPermissions.canRevokeThreePidInvite)
|
||||
clickListener { _ ->
|
||||
|
@ -157,8 +157,4 @@ class RoomMemberListController @Inject constructor(
|
|||
}
|
||||
)
|
||||
}
|
||||
|
||||
private fun RoomThirdPartyInviteContent.toMatrixItem(): MatrixItem {
|
||||
return MatrixItem.UserItem("@", displayName = displayName)
|
||||
}
|
||||
}
|
||||
|
|
|
@ -86,7 +86,7 @@ class SpacePeopleListController @Inject constructor(
|
|||
avatarRenderer(host.avatarRenderer)
|
||||
userEncryptionTrustLevel(data.trustLevelMap.invoke()?.get(roomMember.userId))
|
||||
.apply {
|
||||
val pl = memberEntry.first.toPowerLevelLabel()
|
||||
val pl = host.toPowerLevelLabel(memberEntry.first)
|
||||
if (memberEntry.first == RoomMemberListCategories.INVITE) {
|
||||
powerLevelLabel(
|
||||
span {
|
||||
|
@ -158,8 +158,8 @@ class SpacePeopleListController @Inject constructor(
|
|||
}
|
||||
}
|
||||
|
||||
private fun RoomMemberListCategories.toPowerLevelLabel(): String? {
|
||||
return when (this) {
|
||||
private fun toPowerLevelLabel(categories: RoomMemberListCategories): String? {
|
||||
return when (categories) {
|
||||
RoomMemberListCategories.ADMIN -> stringProvider.getString(R.string.power_level_admin)
|
||||
RoomMemberListCategories.MODERATOR -> stringProvider.getString(R.string.power_level_moderator)
|
||||
else -> null
|
||||
|
|
Loading…
Reference in New Issue