diff --git a/src/featuresToUnlock/unlockableAppIconCheck.ts b/src/featuresToUnlock/unlockableAppIconCheck.ts index ddab655a722..0eaef6b9514 100644 --- a/src/featuresToUnlock/unlockableAppIconCheck.ts +++ b/src/featuresToUnlock/unlockableAppIconCheck.ts @@ -70,6 +70,26 @@ export const unlockableAppIconCheck = async (appIconKey: UnlockableAppIconKey, w unlockableAppIconStorage.set(appIconKey, true); logger.debug(`[unlockableAppIconCheck]: Feature check ${appIconKey} set to true. Wont show up anymore!`); + // Temporarily ignore some icons + // We can get rid of this in 2025! + const iconsToIgnore = [ + 'optimism', + 'smol', + 'zora', + 'golddoge', + 'raindoge', + 'pooly', + 'finiliar', + 'zorb', + 'poolboy', + 'adworld', + 'farcaster', + ]; + + if (iconsToIgnore.includes(appIconKey)) { + return false; + } + Navigation.handleAction(Routes.APP_ICON_UNLOCK_SHEET, { appIconKey }); return true; } diff --git a/src/model/migrations.ts b/src/model/migrations.ts index c4d2c706db7..68625a0686a 100644 --- a/src/model/migrations.ts +++ b/src/model/migrations.ts @@ -41,6 +41,8 @@ import { useLegacyFavoriteDappsStore } from '@/state/legacyFavoriteDapps'; import { getAddressAndChainIdFromUniqueId, getUniqueId, getUniqueIdNetwork } from '@/utils/ethereumUtils'; import { UniqueId } from '@/__swaps__/types/assets'; import { userAssetsStore } from '@/state/assets/userAssets'; +import { UnlockableAppIconKey, unlockableAppIcons } from '@/appIcons/appIcons'; +import { unlockableAppIconStorage } from '@/featuresToUnlock/unlockableAppIconCheck'; export default async function runMigrations() { // get current version @@ -696,6 +698,20 @@ export default async function runMigrations() { migrations.push(v21); + /** + *************** Migration v22 ****************** + * Reset icon checks + */ + const v22 = async () => { + // For each appIcon, delete the handled flag + (Object.keys(unlockableAppIcons) as UnlockableAppIconKey[]).map(appIconKey => { + unlockableAppIconStorage.delete(appIconKey); + logger.debug('Resetting icon status for ' + appIconKey); + }); + }; + + migrations.push(v22); + logger.debug(`[runMigrations]: ready to run migrations starting on number ${currentVersion}`); // await setMigrationVersion(17); if (migrations.length === currentVersion) {