Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3366342
D6882.id23046.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D6882.id23046.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D6882: [web] Add `PickledOLMAccount`s to Redux `CryptoStore`
Attached
Detach File
Event Timeline
Log In to Comment