Use heroes to render room avatars

This commit is contained in:
Benoit Marty 2024-06-20 13:10:25 +02:00
parent 99c43a175d
commit 11e4ee34ed
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)