Return RLS instance through function to avoid import side effect (#31091)

* Attach function that returns instance

So that just importing this file does not create a RLS instance.

* Fix jest test
This commit is contained in:
R Midhun Suresh
2025-10-28 20:18:07 +05:30
committed by GitHub
parent 09c3afd311
commit 5888dfd29d
3 changed files with 5 additions and 2 deletions

View File

@@ -373,4 +373,4 @@ export default class RoomListStoreV3 {
}
}
window.mxRoomListStoreV3 = RoomListStoreV3.instance;
window.getRoomListStoreV3 = () => RoomListStoreV3.instance;