diff --git a/lib/types/crypto-types.js b/lib/types/crypto-types.js --- a/lib/types/crypto-types.js +++ b/lib/types/crypto-types.js @@ -5,7 +5,14 @@ +curve25519: string, }; +export type PickledOLMAccount = { + +picklingKey: string, + +pickledAccount: string, +}; + export type CryptoStore = { + +primaryAccount: ?PickledOLMAccount, +primaryIdentityKeys: ?OLMIdentityKeys, + +notificationAccount: ?PickledOLMAccount, +notificationIdentityKeys: ?OLMIdentityKeys, }; diff --git a/web/redux/crypto-store-reducer.js b/web/redux/crypto-store-reducer.js --- a/web/redux/crypto-store-reducer.js +++ b/web/redux/crypto-store-reducer.js @@ -30,7 +30,9 @@ action.payload.sessionChange.cookieInvalidated) ) { return { + primaryAccount: null, primaryIdentityKeys: null, + notificationAccount: null, notificationIdentityKeys: null, }; } diff --git a/web/root.js b/web/root.js --- a/web/root.js +++ b/web/root.js @@ -30,7 +30,9 @@ return { ...stateWithoutPrimaryIdentityPublicKey, cryptoStore: { + primaryAccount: null, primaryIdentityKeys: null, + notificationAccount: null, notificationIdentityKeys: null, }, };