From 94d0b581bbd2be7b63c07fe7f86d736daa96e1f9 Mon Sep 17 00:00:00 2001 From: Christian Cleberg Date: Tue, 24 Mar 2026 18:28:21 -0500 Subject: v2.4.0: widgets --- Hutch/App/RootView.swift | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'Hutch/App/RootView.swift') diff --git a/Hutch/App/RootView.swift b/Hutch/App/RootView.swift index 9c4e71a..8d4eef1 100644 --- a/Hutch/App/RootView.swift +++ b/Hutch/App/RootView.swift @@ -161,6 +161,10 @@ struct RootView: View { guard appState.isAuthenticated else { return } switch link { + case .home: + homePath = NavigationPath() + appState.selectedTab = .home + case .repository(let owner, let repo): resolveRepositoryLink(owner: owner, repo: repo) @@ -284,12 +288,15 @@ private struct MoreNavigationRoot: View { thread: thread, onViewed: { InboxReadStateStore.markViewed(max(Date(), thread.lastActivityAt), for: thread.id) + NeedsAttentionSnapshotStore.adjustUnreadInboxThreads(by: -1) }, onMarkRead: { InboxReadStateStore.markViewed(max(Date(), thread.lastActivityAt), for: thread.id) + NeedsAttentionSnapshotStore.adjustUnreadInboxThreads(by: -1) }, onMarkUnread: { InboxReadStateStore.markUnread(for: thread.id) + NeedsAttentionSnapshotStore.adjustUnreadInboxThreads(by: 1) } ) } -- cgit v1.2.3