mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-02 21:33:26 +00:00
Show user statuses in the rooms list.
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user