Avoid potential infinite loop.

This commit is contained in:
Benoit Marty 2025-06-23 21:56:20 +02:00
parent 14bb7d3bd1
commit abd92d05d4

View file

@ -49,12 +49,13 @@ internal fun AvatarCluster(
error("Unsupported number of avatars: 0")
}
1 -> {
Avatar(
InitialOrImageAvatar(
avatarData = limitedAvatars[0],
avatarType = avatarType,
hideAvatarImage = hideAvatarImages,
avatarShape = avatarType.avatarShape(),
forcedAvatarSize = null,
modifier = modifier,
contentDescription = contentDescription,
hideImage = hideAvatarImages
)
}
else -> {