aboutsummaryrefslogtreecommitdiffstats
path: root/src/stores
diff options
context:
space:
mode:
Diffstat (limited to 'src/stores')
-rw-r--r--src/stores/AppStore.js2
-rw-r--r--src/stores/UserStore.js7
2 files changed, 4 insertions, 5 deletions
diff --git a/src/stores/AppStore.js b/src/stores/AppStore.js
index 85f74a91e..cb17447c0 100644
--- a/src/stores/AppStore.js
+++ b/src/stores/AppStore.js
@@ -258,7 +258,7 @@ export default class AppStore extends Store {
258 body: 'Have a wonderful day & happy messaging.', 258 body: 'Have a wonderful day & happy messaging.',
259 }); 259 });
260 260
261 localStorage.setItem(CATALINA_NOTIFICATION_HACK_KEY, true); 261 localStorage.setItem(CATALINA_NOTIFICATION_HACK_KEY, 'true');
262 } 262 }
263 } 263 }
264 264
diff --git a/src/stores/UserStore.js b/src/stores/UserStore.js
index e3d57c662..77dd28d7c 100644
--- a/src/stores/UserStore.js
+++ b/src/stores/UserStore.js
@@ -2,13 +2,13 @@ import { observable, computed, action } from 'mobx';
2import moment from 'moment'; 2import moment from 'moment';
3import jwt from 'jsonwebtoken'; 3import jwt from 'jsonwebtoken';
4import localStorage from 'mobx-localstorage'; 4import localStorage from 'mobx-localstorage';
5import { session } from '@electron/remote'; 5import { ipcRenderer } from 'electron';
6 6
7import { TODOS_PARTITION_ID } from '../config';
7import { isDevMode } from '../environment'; 8import { isDevMode } from '../environment';
8import Store from './lib/Store'; 9import Store from './lib/Store';
9import Request from './lib/Request'; 10import Request from './lib/Request';
10import CachedRequest from './lib/CachedRequest'; 11import CachedRequest from './lib/CachedRequest';
11import { TODOS_PARTITION_ID } from '../config';
12 12
13const debug = require('debug')('Ferdi:UserStore'); 13const debug = require('debug')('Ferdi:UserStore');
14 14
@@ -256,8 +256,7 @@ export default class UserStore extends Store {
256 this.stores.services.allServicesRequest.invalidate().reset(); 256 this.stores.services.allServicesRequest.invalidate().reset();
257 257
258 if (this.stores.todos.isTodosEnabled) { 258 if (this.stores.todos.isTodosEnabled) {
259 const sess = session.fromPartition(TODOS_PARTITION_ID); 259 ipcRenderer.send('clear-storage-data', { sessionId: TODOS_PARTITION_ID });
260 sess.clearStorageData();
261 } 260 }
262 } 261 }
263 262