diff options
| author | Dustin Mierau <dustin@mierau.me> | 2024-05-03 12:49:52 -0700 |
|---|---|---|
| committer | Dustin Mierau <dustin@mierau.me> | 2024-05-03 12:49:52 -0700 |
| commit | 02b452ccaf54cb24eb38fcb752126888994c0a1b (patch) | |
| tree | c30e71a1df363092a369fd7847c6223914662ce4 /Hotline/Models/User.swift | |
| parent | 73208d70d21db7e526e371fa863acd0327caad9e (diff) | |
First pass at private messages UI.
Diffstat (limited to 'Hotline/Models/User.swift')
| -rw-r--r-- | Hotline/Models/User.swift | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Hotline/Models/User.swift b/Hotline/Models/User.swift index 7fbecb0..21a8fff 100644 --- a/Hotline/Models/User.swift +++ b/Hotline/Models/User.swift @@ -8,7 +8,7 @@ struct UserStatus: OptionSet { } struct User: Identifiable { - var id: UInt + var id: UInt16 var name: String var iconID: UInt var status: UserStatus @@ -21,13 +21,13 @@ struct User: Identifiable { if hotlineUser.isIdle { status.update(with: .idle) } if hotlineUser.isAdmin { status.update(with: .admin) } - self.id = UInt(hotlineUser.id) + self.id = hotlineUser.id self.name = hotlineUser.name self.iconID = UInt(hotlineUser.iconID) self.status = status } - init(id: UInt, name: String, iconID: UInt, status: UserStatus) { + init(id: UInt16, name: String, iconID: UInt, status: UserStatus) { self.id = id self.name = name self.iconID = iconID |