diff --git a/native/redux/persist-constants.js b/native/redux/persist-constants.js --- a/native/redux/persist-constants.js +++ b/native/redux/persist-constants.js @@ -5,6 +5,6 @@ // NOTE: renaming this constant requires updating // `native/native_rust_library/build.rs` to correctly // scrap Redux state version from this file. -const storeVersion = 90; +const storeVersion = 91; export { rootKey, storeVersion }; diff --git a/native/redux/persist.js b/native/redux/persist.js --- a/native/redux/persist.js +++ b/native/redux/persist.js @@ -1589,6 +1589,19 @@ [messageTypes.DELETE_MESSAGE], handleReduxMigrationFailure, ): MigrationFunction), + [91]: (async (state: AppState) => ({ + state: { + ...state, + alertStore: { + ...state.alertStore, + alertInfos: { + ...defaultAlertInfos, + ...state.alertStore.alertInfos, + }, + }, + }, + ops: {}, + }): MigrationFunction), }); const persistConfig = { diff --git a/web/redux/persist-constants.js b/web/redux/persist-constants.js --- a/web/redux/persist-constants.js +++ b/web/redux/persist-constants.js @@ -3,6 +3,6 @@ const rootKey = 'root'; const rootKeyPrefix = 'persist:'; const completeRootKey = `${rootKeyPrefix}${rootKey}`; -const storeVersion = 90; +const storeVersion = 91; export { rootKey, rootKeyPrefix, completeRootKey, storeVersion }; diff --git a/web/redux/persist.js b/web/redux/persist.js --- a/web/redux/persist.js +++ b/web/redux/persist.js @@ -824,6 +824,19 @@ WebNavInfo, AppState, >), + [91]: (async (state: AppState) => ({ + state: { + ...state, + alertStore: { + ...state.alertStore, + alertInfos: { + ...defaultAlertInfos, + ...state.alertStore.alertInfos, + }, + }, + }, + ops: {}, + }): MigrationFunction), }; const persistConfig: PersistConfig = {