diff --git a/lib/types/alert-types.js b/lib/types/alert-types.js --- a/lib/types/alert-types.js +++ b/lib/types/alert-types.js @@ -5,6 +5,7 @@ CONNECT_FARCASTER: 'connect-farcaster', SIWE_BACKUP_MESSAGE: 'siwe-backup-message', DISPLAY_DIRECTORY_PROMPT: 'display-directory-prompt', + CONNECT_FARCASTER_DCS: 'connect-farcaster-dcs', }); type AlertType = $Values; @@ -39,6 +40,7 @@ [alertTypes.CONNECT_FARCASTER]: defaultAlertInfo, [alertTypes.SIWE_BACKUP_MESSAGE]: defaultAlertInfo, [alertTypes.DISPLAY_DIRECTORY_PROMPT]: defaultAlertInfo, + [alertTypes.CONNECT_FARCASTER_DCS]: defaultAlertInfo, }); const securityUpdateLogoutText: string = 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 = 97; +const storeVersion = 98; 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 @@ -1723,6 +1723,19 @@ ops, }; }: MigrationFunction), + [98]: (async (state: AppState) => ({ + state: { + ...state, + alertStore: { + ...state.alertStore, + alertInfos: { + ...state.alertStore.alertInfos, + [alertTypes.CONNECT_FARCASTER_DCS]: defaultAlertInfo, + }, + }, + }, + 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 = 97; +const storeVersion = 98; 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 @@ -932,6 +932,10 @@ ops, }; }: MigrationFunction), + [98]: (async (state: AppState) => ({ + state, + ops: {}, + }): MigrationFunction), }; const persistConfig: PersistConfig = {