diff --git a/packages/frontend/src/accounts.ts b/packages/frontend/src/accounts.ts index 6454c1249d..ee56449eea 100644 --- a/packages/frontend/src/accounts.ts +++ b/packages/frontend/src/accounts.ts @@ -58,7 +58,7 @@ export async function removeAccount(host: string, id: AccountWithToken['id']) { prefer.commit('accounts', prefer.s.accounts.filter(x => x[0] !== host || x[1].id !== id)); } -export async function removeAccountData(host: string, id: AccountWithToken['id']) { +export async function removeAccountAssociatedData(host: string, id: AccountWithToken['id']) { // 設定・状態を削除 prefer.clearAccountSettingsFromDevice(host, id); await store.clearAccountDataFromDevice(id); @@ -181,7 +181,7 @@ export async function refreshAccounts() { } catch (e) { if (e === isAccountDeleted) { await removeAccount(account.host, account.id); - await removeAccountData(account.host, account.id); + await removeAccountAssociatedData(account.host, account.id); } } } diff --git a/packages/frontend/src/pages/settings/accounts.vue b/packages/frontend/src/pages/settings/accounts.vue index fe8a25a7ae..80e0703450 100644 --- a/packages/frontend/src/pages/settings/accounts.vue +++ b/packages/frontend/src/pages/settings/accounts.vue @@ -37,7 +37,7 @@ import type { MenuItem } from '@/types/menu.js'; import MkButton from '@/components/MkButton.vue'; import * as os from '@/os.js'; import { $i } from '@/i.js'; -import { switchAccount, removeAccount, removeAccountData, getAccountWithSigninDialog, getAccountWithSignupDialog, getAccounts, refreshAccounts } from '@/accounts.js'; +import { switchAccount, removeAccount, removeAccountAssociatedData, getAccountWithSigninDialog, getAccountWithSignupDialog, getAccounts, refreshAccounts } from '@/accounts.js'; import type { AccountData } from '@/accounts.js'; import { i18n } from '@/i18n.js'; import { definePage } from '@/page.js'; @@ -93,7 +93,7 @@ function showMenu(a: AccountData, ev: MouseEvent) { if (canceled) return; await os.promiseDialog((async () => { await removeAccount(a.host, a.id); - await removeAccountData(a.host, a.id); + await removeAccountAssociatedData(a.host, a.id); accounts.value = await getAccounts(); })()); },