Page MenuHomePhabricator

D6882.id23046.diff
No OneTemporary

D6882.id23046.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
@@ -29,7 +29,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
Tue, Nov 26, 10:57 AM (21 h, 1 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2584339
Default Alt Text
D6882.id23046.diff (1 KB)

Event Timeline