do not filter sharedPreferences from sdk prefs (#7418)

This commit is contained in:
jessopb 2022-01-17 20:08:40 -05:00 committed by GitHub
parent 03f5358a8c
commit 064d8738dd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -234,9 +234,8 @@ export function doPushSettingsToPrefs() {
return (dispatch, getState) => { return (dispatch, getState) => {
const state = getState(); const state = getState();
const { const {
settings: { clientSettings }, settings: { clientSettings, sharedPreferences },
} = state; } = state;
const sharedPreferences = Object.assign({}, state.sharedPreferences);
const selectedClientSettings = getSubsetFromKeysArray(clientSettings, CLIENT_SYNC_KEYS); const selectedClientSettings = getSubsetFromKeysArray(clientSettings, CLIENT_SYNC_KEYS);
const newSharedPreferences = { ...sharedPreferences, ...selectedClientSettings }; const newSharedPreferences = { ...sharedPreferences, ...selectedClientSettings };