Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3711903
D8646.id29293.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
D8646.id29293.diff
View Options
diff --git a/lib/types/keyserver-types.js b/lib/types/keyserver-types.js
--- a/lib/types/keyserver-types.js
+++ b/lib/types/keyserver-types.js
@@ -12,6 +12,7 @@
...
};
+// Native JS doesn't have a sessionID because the cookie is used instead.
export type WebKeyserverInfo = {
...$Exact<BaseKeyserverInfo>,
+sessionID: ?string,
diff --git a/lib/types/redux-types.js b/lib/types/redux-types.js
--- a/lib/types/redux-types.js
+++ b/lib/types/redux-types.js
@@ -151,14 +151,8 @@
...
};
-// Web JS runtime doesn't have access to the cookie for security reasons.
-// Native JS doesn't have a sessionID because the cookieID is used instead.
-export type NativeAppState = BaseAppState<*, NativeKeyserverInfo> & {
- sessionID?: void,
- ...
-};
+export type NativeAppState = BaseAppState<*, NativeKeyserverInfo>;
export type WebAppState = BaseAppState<*, WebKeyserverInfo> & {
- sessionID: ?string,
cryptoStore: CryptoStore,
pushApiPublicKey: ?string,
...
diff --git a/native/redux/state-types.js b/native/redux/state-types.js
--- a/native/redux/state-types.js
+++ b/native/redux/state-types.js
@@ -53,7 +53,6 @@
reportStore: ReportStore,
nextLocalID: number,
_persist: ?PersistState,
- sessionID?: void,
dimensions: DimensionsInfo,
connectivity: ConnectivityInfo,
globalThemeInfo: GlobalThemeInfo,
diff --git a/web/redux/redux-setup.js b/web/redux/redux-setup.js
--- a/web/redux/redux-setup.js
+++ b/web/redux/redux-setup.js
@@ -75,7 +75,6 @@
deviceID: ?string,
currentUserInfo: ?CurrentUserInfo,
draftStore: DraftStore,
- sessionID: ?string,
entryStore: EntryStore,
threadStore: ThreadStore,
userStore: UserStore,
@@ -159,7 +158,6 @@
state = {
...state,
- sessionID: action.payload.sessionChange.sessionID,
keyserverStore: { ...state.keyserverStore, keyserverInfos },
};
} else if (
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Jan 9, 6:19 AM (2 h, 31 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2828932
Default Alt Text
D8646.id29293.diff (1 KB)
Attached To
Mode
D8646: [lib][web][native] Remove sessionID redux field
Attached
Detach File
Event Timeline
Log In to Comment