summaryrefslogtreecommitdiff
path: root/Hutch/Models
diff options
context:
space:
mode:
authorChristian Cleberg <[email protected]>2026-04-23 17:39:13 -0500
committerChristian Cleberg <[email protected]>2026-04-23 17:39:13 -0500
commit66601a8091a73f3e31f4fb534c38b3eca4756e93 (patch)
treef85cd883e63177d25dfe5993a4d545efa4812923 /Hutch/Models
parent380fb866d090c5f13b2ad3f88f1fe23c4ade4801 (diff)
downloadhutch-66601a8091a73f3e31f4fb534c38b3eca4756e93.tar.gz
hutch-66601a8091a73f3e31f4fb534c38b3eca4756e93.tar.bz2
hutch-66601a8091a73f3e31f4fb534c38b3eca4756e93.zip
fix: profile loading error and user-timeline prefs updatev3.2.1
Diffstat (limited to 'Hutch/Models')
-rw-r--r--Hutch/Models/Meta.swift8
1 files changed, 7 insertions, 1 deletions
diff --git a/Hutch/Models/Meta.swift b/Hutch/Models/Meta.swift
index c0434bc..91bd7e3 100644
--- a/Hutch/Models/Meta.swift
+++ b/Hutch/Models/Meta.swift
@@ -22,10 +22,16 @@ struct UserProfile: Codable, Sendable {
struct SSHKey: Codable, Sendable, Identifiable {
let id: Int
- let fingerprint: String
let comment: String?
let created: Date
let lastUsed: Date?
+
+ var displayLabel: String {
+ if let comment, !comment.isEmpty {
+ return comment
+ }
+ return "SSH key #\(id)"
+ }
}
struct SSHKeyPage: Codable, Sendable {