aboutsummaryrefslogtreecommitdiffstats
path: root/src/stores/SettingsStore.js
diff options
context:
space:
mode:
authorLibravatar Stefan Malzner <stefan@adlk.io>2017-11-30 00:12:16 +0100
committerLibravatar Stefan Malzner <stefan@adlk.io>2017-11-30 00:12:16 +0100
commit3045b47d869da4e62e9403c63652baeb7b349e1d (patch)
treeae579477cd09b4683b78eb473ebc7abbb88ffc20 /src/stores/SettingsStore.js
parentfix(App): App mute now disables notifications as well (diff)
downloadferdium-app-3045b47d869da4e62e9403c63652baeb7b349e1d.tar.gz
ferdium-app-3045b47d869da4e62e9403c63652baeb7b349e1d.tar.zst
ferdium-app-3045b47d869da4e62e9403c63652baeb7b349e1d.zip
fix(App): Allow to turn on notifications when system dnd is enabled
Diffstat (limited to 'src/stores/SettingsStore.js')
-rw-r--r--src/stores/SettingsStore.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/stores/SettingsStore.js b/src/stores/SettingsStore.js
index 30058f41d..33473f16d 100644
--- a/src/stores/SettingsStore.js
+++ b/src/stores/SettingsStore.js
@@ -5,6 +5,7 @@ import Store from './lib/Store';
5import Request from './lib/Request'; 5import Request from './lib/Request';
6import CachedRequest from './lib/CachedRequest'; 6import CachedRequest from './lib/CachedRequest';
7import { gaEvent } from '../lib/analytics'; 7import { gaEvent } from '../lib/analytics';
8import SettingsModel from '../models/Settings';
8 9
9export default class SettingsStore extends Store { 10export default class SettingsStore extends Store {
10 @observable allSettingsRequest = new CachedRequest(this.api.local, 'getSettings'); 11 @observable allSettingsRequest = new CachedRequest(this.api.local, 'getSettings');
@@ -25,7 +26,7 @@ export default class SettingsStore extends Store {
25 } 26 }
26 27
27 @computed get all() { 28 @computed get all() {
28 return this.allSettingsRequest.result || {}; 29 return this.allSettingsRequest.result || new SettingsModel();
29 } 30 }
30 31
31 @action async _update({ settings }) { 32 @action async _update({ settings }) {