Show user statuses in the rooms list.

This commit is contained in:
Doug
2026-07-10 13:59:58 +01:00
committed by Doug
parent 7b1333c9b8
commit 23b3fc62cb
3 changed files with 41 additions and 10 deletions
@@ -191,4 +191,9 @@ nonisolated extension RoomSummary {
return .room(id: id, name: name, avatarURL: avatarURL)
}
}
var statusEmoji: Character? {
guard isDirect, case let .heroes(heroes) = avatar, heroes.count == 1 else { return nil }
return heroes.first?.status.displayed?.emoji
}
}