Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3351889
D10845.id36188.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
D10845.id36188.diff
View Options
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
@@ -27,6 +27,24 @@
import type { ConnectivityInfo } from '../types/connectivity.js';
import type { LocalSettings } from '../types/local-settings-types.js';
+const nonUserSpecificFieldsNative = [
+ 'storeLoaded',
+ 'loadingStatuses',
+ 'dataLoaded',
+ 'customServer',
+ 'notifPermissionAlertInfo',
+ 'lifecycleState',
+ 'nextLocalID',
+ 'dimensions',
+ 'connectivity',
+ 'deviceCameraInfo',
+ 'deviceOrientation',
+ 'frozen',
+ 'userPolicies',
+ 'keyserverStore',
+ '_persist',
+];
+
export type AppState = {
+navInfo: NavInfo,
+currentUserInfo: ?CurrentUserInfo,
@@ -62,3 +80,5 @@
+localSettings: LocalSettings,
+integrityStore: IntegrityStore,
};
+
+export { nonUserSpecificFieldsNative };
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
@@ -63,6 +63,22 @@
+calendar: ?string,
};
+const nonUserSpecificFieldsWeb = [
+ 'loadingStatuses',
+ 'windowDimensions',
+ 'notifPermissionAlertInfo',
+ 'lifecycleState',
+ 'nextLocalID',
+ 'dataLoaded',
+ 'windowActive',
+ 'userPolicies',
+ 'pushApiPublicKey',
+ 'keyserverStore',
+ 'initialStateLoaded',
+ '_persist',
+ 'customServer',
+];
+
export type AppState = {
+navInfo: NavInfo,
+currentUserInfo: ?CurrentUserInfo,
@@ -112,7 +128,7 @@
| { +type: 'SET_CRYPTO_STORE', payload: CryptoStore }
| { +type: 'SET_INITIAL_REDUX_STATE', payload: InitialReduxState };
-export function reducer(oldState: AppState | void, action: Action): AppState {
+function reducer(oldState: AppState | void, action: Action): AppState {
invariant(oldState, 'should be set');
let state = oldState;
let storeOperations: StoreOperations = {
@@ -395,3 +411,5 @@
return state;
}
+
+export { nonUserSpecificFieldsWeb, reducer };
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Nov 24, 3:57 AM (21 h, 9 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2573803
Default Alt Text
D10845.id36188.diff (1 KB)
Attached To
Mode
D10845: [web][native] Create lists of fields that are not to be removed on identity actions
Attached
Detach File
Event Timeline
Log In to Comment