Skip to content

Commit 6ac9e09

Browse files
committed
Disable Avatar cluster for now.
1 parent 65b6dcd commit 6ac9e09

File tree

1 file changed

+4
-2
lines changed
  • libraries/designsystem/src/main/kotlin/io/element/android/libraries/designsystem/components/avatar/internal

1 file changed

+4
-2
lines changed

libraries/designsystem/src/main/kotlin/io/element/android/libraries/designsystem/components/avatar/internal/RoomAvatar.kt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ import androidx.compose.ui.unit.Dp
1313
import io.element.android.libraries.designsystem.components.avatar.AvatarData
1414
import io.element.android.libraries.designsystem.components.avatar.AvatarType
1515
import io.element.android.libraries.designsystem.components.avatar.avatarShape
16+
import kotlinx.collections.immutable.toImmutableList
1617

1718
@Composable
1819
internal fun RoomAvatar(
@@ -44,8 +45,9 @@ internal fun RoomAvatar(
4445
}
4546
else -> {
4647
AvatarCluster(
47-
avatars = avatarType.heroes,
48-
// Note: even for a room avatar, we use UserAvatarType here to display the avatar of heroes
48+
// Keep only the first hero for now
49+
avatars = avatarType.heroes.take(1).toImmutableList(),
50+
// Note: even for a room avatar, we use AvatarType.User here to display the avatar of heroes
4951
avatarType = AvatarType.User,
5052
modifier = modifier,
5153
hideAvatarImages = hideAvatarImage,

0 commit comments

Comments
 (0)