aboutsummaryrefslogtreecommitdiff
path: root/Hotline/macOS/ServerView.swift
diff options
context:
space:
mode:
Diffstat (limited to 'Hotline/macOS/ServerView.swift')
-rw-r--r--Hotline/macOS/ServerView.swift14
1 files changed, 11 insertions, 3 deletions
diff --git a/Hotline/macOS/ServerView.swift b/Hotline/macOS/ServerView.swift
index ce9b3dc..a385109 100644
--- a/Hotline/macOS/ServerView.swift
+++ b/Hotline/macOS/ServerView.swift
@@ -161,9 +161,17 @@ struct ServerView: View {
Section("Users") {
ForEach(model.users) { user in
HStack {
- Text("🙂")
- .font(.headline)
- .opacity(controlActiveState == .inactive ? 0.5 : 1.0)
+ if let iconString = Hotline.defaultIconSet[Int(user.iconID)] {
+ Text(iconString)
+ .font(.headline)
+ .frame(width: 18)
+ .opacity(controlActiveState == .inactive ? 0.5 : 1.0)
+ }
+ else {
+ Text("")
+ .frame(width: 18)
+ }
+
if user.status.contains(.admin) {
if user.status.contains(.idle) {
Text(user.name)