mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-02 21:32:34 +00:00
Ensure modifier of BadgeList is used.
This commit is contained in:
+10
-7
@@ -10,6 +10,7 @@ package io.element.android.features.roomdetails.impl
|
|||||||
import androidx.compose.foundation.clickable
|
import androidx.compose.foundation.clickable
|
||||||
import androidx.compose.foundation.interaction.MutableInteractionSource
|
import androidx.compose.foundation.interaction.MutableInteractionSource
|
||||||
import androidx.compose.foundation.layout.Arrangement
|
import androidx.compose.foundation.layout.Arrangement
|
||||||
|
import androidx.compose.foundation.layout.Box
|
||||||
import androidx.compose.foundation.layout.Column
|
import androidx.compose.foundation.layout.Column
|
||||||
import androidx.compose.foundation.layout.ColumnScope
|
import androidx.compose.foundation.layout.ColumnScope
|
||||||
import androidx.compose.foundation.layout.Row
|
import androidx.compose.foundation.layout.Row
|
||||||
@@ -405,13 +406,15 @@ private fun BadgeList(
|
|||||||
roomBadge: ImmutableList<RoomBadge>,
|
roomBadge: ImmutableList<RoomBadge>,
|
||||||
modifier: Modifier = Modifier,
|
modifier: Modifier = Modifier,
|
||||||
) {
|
) {
|
||||||
if (roomBadge.isEmpty()) return
|
Box(modifier = modifier) {
|
||||||
MatrixBadgeRowMolecule(
|
if (roomBadge.isNotEmpty()) {
|
||||||
modifier = modifier,
|
MatrixBadgeRowMolecule(
|
||||||
data = roomBadge.map {
|
data = roomBadge.map {
|
||||||
it.toMatrixBadgeData()
|
it.toMatrixBadgeData()
|
||||||
}.toImmutableList(),
|
}.toImmutableList(),
|
||||||
)
|
)
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Composable
|
@Composable
|
||||||
|
|||||||
Reference in New Issue
Block a user