diff options
| author | Christian Cleberg <[email protected]> | 2026-07-15 23:27:03 -0500 |
|---|---|---|
| committer | GitHub <[email protected]> | 2026-07-15 23:27:03 -0500 |
| commit | 0ad430c79eedac4140680e3aaca238969ac711b1 (patch) | |
| tree | e4928ae266acb2282a12e8212b82635890f50089 /Hutch/App/AppState.swift | |
| parent | 922502a2c74c66034f3ec2db6612f2a36d242042 (diff) | |
| parent | 97e8b49fcb56751fa0e80a332484db8252753417 (diff) | |
| download | hutch-0ad430c79eedac4140680e3aaca238969ac711b1.tar.gz hutch-0ad430c79eedac4140680e3aaca238969ac711b1.tar.bz2 hutch-0ad430c79eedac4140680e3aaca238969ac711b1.zip | |
Merge pull request #5 from zerolabsco/inbox-unread-baseline
Start a new account at zero unread
Diffstat (limited to 'Hutch/App/AppState.swift')
| -rw-r--r-- | Hutch/App/AppState.swift | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Hutch/App/AppState.swift b/Hutch/App/AppState.swift index 479f610..ad31c5c 100644 --- a/Hutch/App/AppState.swift +++ b/Hutch/App/AppState.swift @@ -561,6 +561,9 @@ final class AppState { UserDefaults.standard.set(session.account.id, forKey: AppStorageKeys.activeAccountID) ActiveAccountContextStore.save(session.account.id) ContributionWidgetContextStore.saveActor(session.user.canonicalName, accountID: session.account.id) + // Every sign-in path funnels through here, so this is where an account + // first learns which mail predates it. + InboxReadStateStore.establishBaselineIfNeeded(defaults: session.defaults) authStatusMessage = "Connecting…" } |
