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; }