Feature: Basic notification options implementation

This commit is contained in:
Paul
2021-06-24 23:59:46 +01:00
parent 51ac1f599c
commit 21859e4c55
10 changed files with 173 additions and 25 deletions

View File

@@ -13,6 +13,7 @@ import { Settings } from "./reducers/settings";
import { QueuedMessage } from "./reducers/queue";
import { ExperimentOptions } from "./reducers/experiments";
import { LastOpened } from "./reducers/last_opened";
import { Notifications } from "./reducers/notifications";
export type State = {
config: Core.RevoltNodeConfiguration,
@@ -26,6 +27,7 @@ export type State = {
sync: SyncOptions;
experiments: ExperimentOptions;
lastOpened: LastOpened;
notifications: Notifications;
};
// eslint-disable-next-line @typescript-eslint/no-explicit-any
@@ -53,7 +55,8 @@ store.subscribe(() => {
drafts,
sync,
experiments,
lastOpened
lastOpened,
notifications
} = store.getState() as State;
localForage.setItem("state", {
@@ -66,6 +69,7 @@ store.subscribe(() => {
drafts,
sync,
experiments,
lastOpened
lastOpened,
notifications
});
});