From 757cd88bb77897bf4d95b243c84715d5bef1aa92 Mon Sep 17 00:00:00 2001 From: R Midhun Suresh Date: Tue, 25 Feb 2025 09:37:52 +0530 Subject: [PATCH] Don't attach to window object We don't want the store to be created if the labs flag is off --- src/@types/global.d.ts | 2 -- src/stores/room-list-v3/RoomListStoreV3.ts | 2 -- 2 files changed, 4 deletions(-) diff --git a/src/@types/global.d.ts b/src/@types/global.d.ts index 154a6504c6..1df84ad344 100644 --- a/src/@types/global.d.ts +++ b/src/@types/global.d.ts @@ -47,7 +47,6 @@ import { type DeepReadonly } from "./common"; import type MatrixChat from "../components/structures/MatrixChat"; import { type InitialCryptoSetupStore } from "../stores/InitialCryptoSetupStore"; import { type ModuleApiType } from "../modules/Api.ts"; -import type RoomListStoreV3 from "../stores/room-list-v3/RoomListStoreV3.ts"; /* eslint-disable @typescript-eslint/naming-convention */ @@ -100,7 +99,6 @@ declare global { mxToastStore: ToastStore; mxDeviceListener: DeviceListener; mxRoomListStore: RoomListStore; - mxRoomListStoreV3: RoomListStoreV3; mxRoomListLayoutStore: RoomListLayoutStore; mxPlatformPeg: PlatformPeg; mxIntegrationManagers: typeof IntegrationManagers; diff --git a/src/stores/room-list-v3/RoomListStoreV3.ts b/src/stores/room-list-v3/RoomListStoreV3.ts index 4b661c9702..d6ce63713c 100644 --- a/src/stores/room-list-v3/RoomListStoreV3.ts +++ b/src/stores/room-list-v3/RoomListStoreV3.ts @@ -78,5 +78,3 @@ export default class RoomListStoreV3 { return this.internalInstance; } } - -window.mxRoomListStoreV3 = RoomListStoreV3.instance;