Rename RoomListStore2 class name

We use `RoomListStore` as a singleton, and don't want the ugly `2` at the end of the actual store instance, so here we rename it to something half-decent.
This commit is contained in:
Travis Ralston 2020-07-17 15:10:30 -06:00
parent 1f9c07861e
commit 209a5d2220
4 changed files with 15 additions and 12 deletions

View file

@ -14,7 +14,10 @@ import GroupStore from '../../../../src/stores/GroupStore.js';
import { MatrixClient, Room, RoomMember } from 'matrix-js-sdk';
import {DefaultTagID} from "../../../../src/stores/room-list/models";
import RoomListStore, {LISTS_UPDATE_EVENT, RoomListStore2} from "../../../../src/stores/room-list/RoomListStore2";
import RoomListStore, {
LISTS_UPDATE_EVENT,
RoomListStoreClass
} from "../../../../src/stores/room-list/RoomListStore2";
import RoomListLayoutStore from "../../../../src/stores/room-list/RoomListLayoutStore";
function generateRoomId() {
@ -49,7 +52,7 @@ describe('RoomList', () => {
let myOtherMember;
beforeEach(async function(done) {
RoomListStore2.TEST_MODE = true;
RoomListStoreClass.TEST_MODE = true;
TestUtils.stubClient();
client = MatrixClientPeg.get();