summaryrefslogtreecommitdiff
path: root/Hutch/Views/Inbox/InboxView.swift
diff options
context:
space:
mode:
authorChristian Cleberg <[email protected]>2026-04-12 23:19:20 -0500
committerChristian Cleberg <[email protected]>2026-04-12 23:19:20 -0500
commitee9f2904aa319231b7047fca3cb069f0c07019cd (patch)
tree69a18234512c63f38f0d477e0023969698ec3c9e /Hutch/Views/Inbox/InboxView.swift
parent72f860e0e171f6aac4e7d896e7a571147dbcb5c5 (diff)
downloadhutch-ee9f2904aa319231b7047fca3cb069f0c07019cd.tar.gz
hutch-ee9f2904aa319231b7047fca3cb069f0c07019cd.tar.bz2
hutch-ee9f2904aa319231b7047fca3cb069f0c07019cd.zip
feat: add multi-account support
Implements: https://todo.sr.ht/~ccleberg/hutch/49 Implements: https://todo.sr.ht/~ccleberg/hutch/50 Implements: https://todo.sr.ht/~ccleberg/hutch/51
Diffstat (limited to 'Hutch/Views/Inbox/InboxView.swift')
-rw-r--r--Hutch/Views/Inbox/InboxView.swift6
1 files changed, 5 insertions, 1 deletions
diff --git a/Hutch/Views/Inbox/InboxView.swift b/Hutch/Views/Inbox/InboxView.swift
index f8753d7..c5299ec 100644
--- a/Hutch/Views/Inbox/InboxView.swift
+++ b/Hutch/Views/Inbox/InboxView.swift
@@ -22,7 +22,11 @@ struct InboxView: View {
if let viewModel {
vm = viewModel
} else {
- let newViewModel = InboxViewModel(client: appState.client)
+ let newViewModel = InboxViewModel(
+ client: appState.client,
+ defaults: appState.accountDefaults,
+ accountID: appState.activeAccountID
+ )
viewModel = newViewModel
vm = newViewModel
}