Page MenuHomePhabricator

D8646.id29293.diff
No OneTemporary

D8646.id29293.diff

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

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)

Event Timeline