summaryrefslogtreecommitdiff
path: root/Hutch/App
diff options
context:
space:
mode:
Diffstat (limited to 'Hutch/App')
-rw-r--r--Hutch/App/AppState.swift3
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…"
}