Disable Avatar cluster for now.

This commit is contained in:
Benoit Marty
2025-10-08 18:08:08 +02:00
parent 65b6dcde9d
commit 6ac9e09ba3
@@ -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,