Skip to content

Commit c40acd7

Browse files
committed
Fix typo
1 parent 8bfb983 commit c40acd7

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ export class RoomListStoreV3Class extends AsyncStoreWithClient<EmptyObject> {
6262
/**
6363
* Get a list of sorted rooms that belong to the currently active space.
6464
*/
65-
public getSortedRoomInActiveSpace(): Room[] {
65+
public getSortedRoomsInActiveSpace(): Room[] {
6666
if (this.roomSkipList?.initialized) return Array.from(this.roomSkipList.getRoomsInActiveSpace());
6767
else return [];
6868
}

test/unit-tests/stores/room-list-v3/RoomListStoreV3-test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@ describe("RoomListStoreV3", () => {
298298
store.on(LISTS_UPDATE_EVENT, fn);
299299

300300
// The rooms which belong to the space should not be shown
301-
const result = store.getSortedRoomInActiveSpace().map((r) => r.roomId);
301+
const result = store.getSortedRoomsInActiveSpace().map((r) => r.roomId);
302302
for (const id of roomIds) {
303303
expect(result).not.toContain(id);
304304
}
@@ -307,7 +307,7 @@ describe("RoomListStoreV3", () => {
307307
jest.spyOn(SpaceStore.instance, "activeSpace", "get").mockImplementation(() => spaceRoom.roomId);
308308
SpaceStore.instance.emit(UPDATE_SELECTED_SPACE);
309309
expect(fn).toHaveBeenCalled();
310-
const result2 = store.getSortedRoomInActiveSpace().map((r) => r.roomId);
310+
const result2 = store.getSortedRoomsInActiveSpace().map((r) => r.roomId);
311311
for (const id of roomIds) {
312312
expect(result2).toContain(id);
313313
}

0 commit comments

Comments
 (0)