From 02b452ccaf54cb24eb38fcb752126888994c0a1b Mon Sep 17 00:00:00 2001 From: Dustin Mierau Date: Fri, 3 May 2024 12:49:52 -0700 Subject: First pass at private messages UI. --- Hotline/Models/User.swift | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Hotline/Models/User.swift') 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 -- cgit