summaryrefslogtreecommitdiff
path: root/Hutch/Models/Inbox.swift
diff options
context:
space:
mode:
Diffstat (limited to 'Hutch/Models/Inbox.swift')
-rw-r--r--Hutch/Models/Inbox.swift5
1 files changed, 4 insertions, 1 deletions
diff --git a/Hutch/Models/Inbox.swift b/Hutch/Models/Inbox.swift
index 071bcbc..be2e105 100644
--- a/Hutch/Models/Inbox.swift
+++ b/Hutch/Models/Inbox.swift
@@ -17,8 +17,11 @@ struct InboxThreadSummary: Identifiable, Hashable, Sendable {
let containsPatch: Bool
let isUnread: Bool
+ /// Identity is per-thread, keyed on the root Message-ID. It deliberately differs
+ /// from ``threadGroupingKey``, which is subject-based so replies collapse into
+ /// one conversation — two unrelated threads can share a subject on the same list.
var id: String {
- threadGroupingKey
+ "\(listRID)#\(rootMessageID)"
}
var listDisplayName: String {