From 9065ef6e92245a44390e336cc1ae515ae706cdd7 Mon Sep 17 00:00:00 2001 From: Christian Cleberg Date: Thu, 19 Mar 2026 16:35:41 -0500 Subject: fix: inbox thread handling bug --- Hutch/Views/Inbox/InboxViewModel.swift | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Hutch/Views/Inbox/InboxViewModel.swift') 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? -- cgit v1.2.3