(options = {})
| 1089 | } |
| 1090 | |
| 1091 | async function clearLuckmailRuntimeState(options = {}) { |
| 1092 | const { clearEmail = false } = options; |
| 1093 | const updates = { |
| 1094 | currentLuckmailPurchase: null, |
| 1095 | currentLuckmailMailCursor: null, |
| 1096 | }; |
| 1097 | if (clearEmail) { |
| 1098 | updates.email = null; |
| 1099 | } |
| 1100 | await setState(updates); |
| 1101 | broadcastDataUpdate(updates); |
| 1102 | } |
| 1103 | |
| 1104 | function getManualAliasUsageMap(state) { |
| 1105 | return normalizeBooleanMap(state?.manualAliasUsage); |
no test coverage detected