Page MenuHomePhabricator

D6882.diff
No OneTemporary

D6882.diff

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,
},
};

File Metadata

Mime Type
text/plain
Expires
Fri, Nov 22, 11:03 PM (17 h, 38 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2566349
Default Alt Text
D6882.diff (1 KB)

Event Timeline