Update notification subscriptions reactively

This commit is contained in:
Jon Staab
2026-01-26 11:12:15 -08:00
parent 9b3a8258ce
commit 143a1dd39b
6 changed files with 271 additions and 173 deletions
+6 -1
View File
@@ -27,7 +27,7 @@
import {setupAnalytics} from "@app/util/analytics"
import {authPolicy, blockPolicy, trustPolicy, mostlyRestrictedPolicy} from "@app/util/policies"
import {kv, db} from "@app/core/storage"
import {userSettingsValues, notificationSettings} from "@app/core/state"
import {userSettingsValues, notificationSettings, notificationState} from "@app/core/state"
import {syncApplicationData} from "@app/core/sync"
import * as commands from "@app/core/commands"
import * as requests from "@app/core/requests"
@@ -107,6 +107,11 @@
store: notificationSettings,
storage: kv,
}),
sync({
key: "notificationState",
store: notificationState,
storage: kv,
}),
])
// Set up our storage adapters