From c6a5d5c982f248731e78ca8d369c75d0565d05de Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Thu, 19 Dec 2024 17:01:54 +0000 Subject: [PATCH] Iterate Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> --- scripts/analyse_unused_exports.ts | 3 +++ src/stores/spaces/SpaceStore.ts | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/scripts/analyse_unused_exports.ts b/scripts/analyse_unused_exports.ts index 46e594d2b74..745dd1b311b 100755 --- a/scripts/analyse_unused_exports.ts +++ b/scripts/analyse_unused_exports.ts @@ -19,6 +19,9 @@ ignore.push("/OpenSpotlightPayload.ts"); ignore.push("/PinnedMessageBadge.tsx"); ignore.push("/editor/mock.ts"); ignore.push("DeviceIsolationModeController.ts"); +ignore.push("/json.ts"); +ignore.push("/ReleaseAnnouncementStore.ts"); +ignore.push("/WidgetLayoutStore.ts"); // We ignore js-sdk by default as it may export for other non element-web projects if (!includeJSSDK) ignore.push("matrix-js-sdk"); diff --git a/src/stores/spaces/SpaceStore.ts b/src/stores/spaces/SpaceStore.ts index 1a43bb807a4..8bed00e561d 100644 --- a/src/stores/spaces/SpaceStore.ts +++ b/src/stores/spaces/SpaceStore.ts @@ -239,7 +239,7 @@ export class SpaceStoreClass extends AsyncStoreWithClient { if (!isMetaSpace(space)) { cliSpace = this.matrixClient.getRoom(space); if (!cliSpace?.isSpaceRoom()) return; - } else if (!this.enabledMetaSpaces.includes(space as MetaSpace)) { + } else if (!this.enabledMetaSpaces.includes(space)) { return; }