Skip to content

Commit 1cf3c8b

Browse files
committed
Attach the new store to window
1 parent 179b368 commit 1cf3c8b

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

src/@types/global.d.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ import { type DeepReadonly } from "./common";
4747
import type MatrixChat from "../components/structures/MatrixChat";
4848
import { type InitialCryptoSetupStore } from "../stores/InitialCryptoSetupStore";
4949
import { type ModuleApiType } from "../modules/Api.ts";
50+
import type { RoomListStoreV3Class } from "../stores/room-list-v3/RoomListStoreV3.ts";
5051

5152
/* eslint-disable @typescript-eslint/naming-convention */
5253

@@ -99,6 +100,7 @@ declare global {
99100
mxToastStore: ToastStore;
100101
mxDeviceListener: DeviceListener;
101102
mxRoomListStore: RoomListStore;
103+
mxRoomListStoreV3: RoomListStoreV3Class;
102104
mxRoomListLayoutStore: RoomListLayoutStore;
103105
mxPlatformPeg: PlatformPeg;
104106
mxIntegrationManagers: typeof IntegrationManagers;

src/stores/room-list-v3/RoomListStoreV3.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -228,3 +228,5 @@ export default class RoomListStoreV3 {
228228
return this.internalInstance;
229229
}
230230
}
231+
232+
window.mxRoomListStoreV3 = RoomListStoreV3.instance;

0 commit comments

Comments
 (0)