MCPcopy Index your code
hub / github.com/QLHazyCoder/FlowPilot / deleteHotmailAccount

Function deleteHotmailAccount

background.js:1330–1343  ·  view source on GitHub ↗
(accountId)

Source from the content-addressed store, hash-verified

1328}
1329
1330async function deleteHotmailAccount(accountId) {
1331 const state = await getState();
1332 const accounts = normalizeHotmailAccounts(state.hotmailAccounts);
1333 const nextAccounts = accounts.filter((account) => account.id !== accountId);
1334 await syncHotmailAccounts(nextAccounts);
1335
1336 if (state.currentHotmailAccountId === accountId) {
1337 await setState({ currentHotmailAccountId: null });
1338 if (isHotmailProvider(state)) {
1339 await setEmailState(null);
1340 }
1341 broadcastDataUpdate({ currentHotmailAccountId: null });
1342 }
1343}
1344
1345async function deleteHotmailAccounts(mode = 'all') {
1346 const state = await getState();

Callers 1

handleMessageFunction · 0.85

Calls 7

getStateFunction · 0.85
normalizeHotmailAccountsFunction · 0.85
syncHotmailAccountsFunction · 0.85
setStateFunction · 0.85
isHotmailProviderFunction · 0.85
setEmailStateFunction · 0.85
broadcastDataUpdateFunction · 0.85

Tested by

no test coverage detected