From fdc0f39187bcdf5de276e202788f1c05715cf089 Mon Sep 17 00:00:00 2001 From: Henry Jameson Date: Wed, 26 Aug 2026 13:59:18 +0300 Subject: [PATCH] cleanup --- src/components/list/list.js | 2 +- src/stores/admin_settings.js | 8 +++----- test/unit/specs/components/chat_view.spec.js | 4 ---- test/unit/specs/stores/user_highlight.spec.js | 9 --------- 4 files changed, 4 insertions(+), 19 deletions(-) diff --git a/src/components/list/list.js b/src/components/list/list.js index 6a1f77ac0..8abf02fd6 100644 --- a/src/components/list/list.js +++ b/src/components/list/list.js @@ -48,7 +48,7 @@ const List = { data() { return { items: [], - selected: new Set(this.preSelect), + selected: new Set(this.preSelect), // clone loading: false, bottomedOut: true, error: null, diff --git a/src/stores/admin_settings.js b/src/stores/admin_settings.js index 70850e5f6..f3b845f61 100644 --- a/src/stores/admin_settings.js +++ b/src/stores/admin_settings.js @@ -430,11 +430,9 @@ export const useAdminSettingsStore = defineStore('adminSettings', { }) resultUserIds.data.forEach((userId) => { - window.vuex.dispatch( - 'markStatusesAsDeleted', - (status) => userId === status.user.id, - ) - // TODO when migrated to pinia, also remove user + useStatusesStore().wipeUserStatuses(status.user.id) + // Users are technically never deleted, just deactivated + // so there's no real need to delete them from store. }) return resultUserIds diff --git a/test/unit/specs/components/chat_view.spec.js b/test/unit/specs/components/chat_view.spec.js index d03809e38..ba06b6b4c 100644 --- a/test/unit/specs/components/chat_view.spec.js +++ b/test/unit/specs/components/chat_view.spec.js @@ -32,10 +32,6 @@ const global = { $store: { state: { api: {}, - users: {}, - statuses: { - allStatusesObject: {}, - }, }, }, $route: { diff --git a/test/unit/specs/stores/user_highlight.spec.js b/test/unit/specs/stores/user_highlight.spec.js index e97f8f382..865544035 100644 --- a/test/unit/specs/stores/user_highlight.spec.js +++ b/test/unit/specs/stores/user_highlight.spec.js @@ -9,15 +9,6 @@ import { describe('The UserHighlight store', () => { beforeEach(() => { setActivePinia(createPinia()) - window.vuex = { - state: { - users: { - currentUser: { - fqn: 'foo@bar.tld', - }, - }, - }, - } }) describe('mutations', () => {