Always render either "Not encrypted" or "Encrypted" badge in the room detail screen.
This commit is contained in:
parent
f29846189c
commit
f5f66e6c60
2 changed files with 8 additions and 8 deletions
|
|
@ -48,12 +48,10 @@ data class RoomDetailsState(
|
|||
val eventSink: (RoomDetailsEvent) -> Unit
|
||||
) {
|
||||
val roomBadges = buildList {
|
||||
if (isEncrypted || isPublic) {
|
||||
if (isEncrypted) {
|
||||
add(RoomBadge.ENCRYPTED)
|
||||
} else {
|
||||
add(RoomBadge.NOT_ENCRYPTED)
|
||||
}
|
||||
if (isEncrypted) {
|
||||
add(RoomBadge.ENCRYPTED)
|
||||
} else {
|
||||
add(RoomBadge.NOT_ENCRYPTED)
|
||||
}
|
||||
if (isPublic) {
|
||||
add(RoomBadge.PUBLIC)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue