Use heroes to render room avatars

This commit is contained in:
Benoit Marty 2024-06-20 13:10:25 +02:00
parent a199a8605f
commit ad02e05bf4
11 changed files with 79 additions and 10 deletions

View file

@ -53,7 +53,7 @@ fun CompositeAvatar(
}
when (numberOfHeroes) {
0 -> {
// Cannot happen
error("Unsupported number of heroes: 0")
}
1 -> {
Avatar(heroes[0], modifier, contentDescription)