Disable Avatar cluster for now.
This commit is contained in:
parent
73a85db574
commit
a13664456c
1 changed files with 4 additions and 2 deletions
|
|
@ -13,6 +13,7 @@ import androidx.compose.ui.unit.Dp
|
||||||
import io.element.android.libraries.designsystem.components.avatar.AvatarData
|
import io.element.android.libraries.designsystem.components.avatar.AvatarData
|
||||||
import io.element.android.libraries.designsystem.components.avatar.AvatarType
|
import io.element.android.libraries.designsystem.components.avatar.AvatarType
|
||||||
import io.element.android.libraries.designsystem.components.avatar.avatarShape
|
import io.element.android.libraries.designsystem.components.avatar.avatarShape
|
||||||
|
import kotlinx.collections.immutable.toImmutableList
|
||||||
|
|
||||||
@Composable
|
@Composable
|
||||||
internal fun RoomAvatar(
|
internal fun RoomAvatar(
|
||||||
|
|
@ -44,8 +45,9 @@ internal fun RoomAvatar(
|
||||||
}
|
}
|
||||||
else -> {
|
else -> {
|
||||||
AvatarCluster(
|
AvatarCluster(
|
||||||
avatars = avatarType.heroes,
|
// Keep only the first hero for now
|
||||||
// Note: even for a room avatar, we use UserAvatarType here to display the avatar of heroes
|
avatars = avatarType.heroes.take(1).toImmutableList(),
|
||||||
|
// Note: even for a room avatar, we use AvatarType.User here to display the avatar of heroes
|
||||||
avatarType = AvatarType.User,
|
avatarType = AvatarType.User,
|
||||||
modifier = modifier,
|
modifier = modifier,
|
||||||
hideAvatarImages = hideAvatarImage,
|
hideAvatarImages = hideAvatarImage,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue