mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-03 16:10:00 +00:00
Avoid potential infinite loop.
This commit is contained in:
+4
-3
@@ -49,12 +49,13 @@ internal fun AvatarCluster(
|
|||||||
error("Unsupported number of avatars: 0")
|
error("Unsupported number of avatars: 0")
|
||||||
}
|
}
|
||||||
1 -> {
|
1 -> {
|
||||||
Avatar(
|
InitialOrImageAvatar(
|
||||||
avatarData = limitedAvatars[0],
|
avatarData = limitedAvatars[0],
|
||||||
avatarType = avatarType,
|
hideAvatarImage = hideAvatarImages,
|
||||||
|
avatarShape = avatarType.avatarShape(),
|
||||||
|
forcedAvatarSize = null,
|
||||||
modifier = modifier,
|
modifier = modifier,
|
||||||
contentDescription = contentDescription,
|
contentDescription = contentDescription,
|
||||||
hideImage = hideAvatarImages
|
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
else -> {
|
else -> {
|
||||||
|
|||||||
Reference in New Issue
Block a user