summaryrefslogtreecommitdiff
path: root/Hutch/Views/Inbox/InboxViewModel.swift
diff options
context:
space:
mode:
authorChristian Cleberg <[email protected]>2026-03-19 16:35:41 -0500
committerChristian Cleberg <[email protected]>2026-03-19 16:35:41 -0500
commit9065ef6e92245a44390e336cc1ae515ae706cdd7 (patch)
tree413a9d930bd8159205afe567fe1e65fbfd8733c2 /Hutch/Views/Inbox/InboxViewModel.swift
parent165d97fd2867cf5923aeb1c5fc00f6e60bcaaa6e (diff)
downloadhutch-9065ef6e92245a44390e336cc1ae515ae706cdd7.tar.gz
hutch-9065ef6e92245a44390e336cc1ae515ae706cdd7.tar.bz2
hutch-9065ef6e92245a44390e336cc1ae515ae706cdd7.zip
fix: inbox thread handling bug
Diffstat (limited to 'Hutch/Views/Inbox/InboxViewModel.swift')
-rw-r--r--Hutch/Views/Inbox/InboxViewModel.swift4
1 files changed, 4 insertions, 0 deletions
diff --git a/Hutch/Views/Inbox/InboxViewModel.swift b/Hutch/Views/Inbox/InboxViewModel.swift
index 9c1ef45..e4a0664 100644
--- a/Hutch/Views/Inbox/InboxViewModel.swift
+++ b/Hutch/Views/Inbox/InboxViewModel.swift
@@ -166,6 +166,10 @@ final class InboxViewModel {
}
}
+ func thread(withID id: InboxThreadSummary.ID) -> InboxThreadSummary? {
+ threads.first(where: { $0.id == id })
+ }
+
private func fetchSubscriptions() async throws -> [InboxActivitySubscription] {
var subscriptions: [InboxActivitySubscription] = []
var cursor: String?