mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-03 06:55:41 +00:00
Disable Avatar cluster for now.
This commit is contained in:
+4
-2
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user