fix: defer HeroSMS reuse confirmation until final cleanup

This commit is contained in:
zhangkun
2026-04-28 21:49:58 +08:00
parent 59663c4ca3
commit b8d8847ce5
5 changed files with 89 additions and 7 deletions
+1 -1
View File
@@ -6691,7 +6691,6 @@ async function handleStepData(step, payload) {
excludeLocalhostCallbacks: true,
});
}
await finalizePhoneActivationAfterSuccessfulFlow(latestState);
await finalizeIcloudAliasAfterSuccessfulFlow(latestState);
const shouldClearCustomPoolEmail = String(latestState?.emailGenerator || '').trim().toLowerCase() === (
typeof CUSTOM_EMAIL_POOL_GENERATOR === 'string'
@@ -6701,6 +6700,7 @@ async function handleStepData(step, payload) {
if ((shouldUseCustomRegistrationEmail(latestState) || shouldClearCustomPoolEmail) && latestState.email) {
await setEmailStateSilently(null);
}
await finalizePhoneActivationAfterSuccessfulFlow(latestState);
break;
}
}