From 5d2aadbc834393b532d043d6298d6a23b80c2a5c Mon Sep 17 00:00:00 2001 From: Dustin Mierau Date: Mon, 1 Jan 2024 11:35:49 -0800 Subject: File downloads now working in macOS client. --- Hotline/Models/User.swift | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'Hotline/Models/User.swift') diff --git a/Hotline/Models/User.swift b/Hotline/Models/User.swift index 1a921e2..7fbecb0 100644 --- a/Hotline/Models/User.swift +++ b/Hotline/Models/User.swift @@ -8,11 +8,14 @@ struct UserStatus: OptionSet { } struct User: Identifiable { - let id: UInt + var id: UInt var name: String var iconID: UInt var status: UserStatus + var isAdmin: Bool { self.status.contains(.admin) } + var isIdle: Bool { self.status.contains(.idle) } + init(hotlineUser: HotlineUser) { var status: UserStatus = UserStatus() if hotlineUser.isIdle { status.update(with: .idle) } -- cgit