diff options
| author | Christian Cleberg <[email protected]> | 2026-03-19 16:35:41 -0500 |
|---|---|---|
| committer | Christian Cleberg <[email protected]> | 2026-03-19 16:35:41 -0500 |
| commit | 9065ef6e92245a44390e336cc1ae515ae706cdd7 (patch) | |
| tree | 413a9d930bd8159205afe567fe1e65fbfd8733c2 /Hutch/Views/Inbox/InboxViewModel.swift | |
| parent | 165d97fd2867cf5923aeb1c5fc00f6e60bcaaa6e (diff) | |
| download | hutch-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.swift | 4 |
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? |
