Remove default param for AvatarCluster.avatarType
This commit is contained in:
@@ -33,8 +33,8 @@ private const val MAX_AVATAR_COUNT = 4
|
||||
@Composable
|
||||
internal fun AvatarCluster(
|
||||
avatars: ImmutableList<AvatarData>,
|
||||
avatarType: AvatarType,
|
||||
modifier: Modifier = Modifier,
|
||||
avatarType: AvatarType = AvatarType.User,
|
||||
hideAvatarImages: Boolean = false,
|
||||
contentDescription: String? = null,
|
||||
) {
|
||||
@@ -119,6 +119,7 @@ internal fun AvatarClusterPreview() = ElementThemedPreview {
|
||||
for (ngOfAvatars in 1..5) {
|
||||
AvatarCluster(
|
||||
avatars = List(ngOfAvatars) { anAvatarData(it) }.toPersistentList(),
|
||||
avatarType = AvatarType.User,
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -49,6 +49,8 @@ internal fun RoomAvatar(
|
||||
else -> {
|
||||
AvatarCluster(
|
||||
avatars = avatarType.heroes,
|
||||
// Note: even for a room avatar, we use UserAvatarType here to display the avatar of heroes
|
||||
avatarType = AvatarType.User,
|
||||
modifier = modifier,
|
||||
hideAvatarImages = hideAvatarImage,
|
||||
contentDescription = contentDescription
|
||||
|
||||
Reference in New Issue
Block a user