We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cf50965 commit a7817e5Copy full SHA for a7817e5
src/components/viewmodels/roomlist/RoomListViewModel.tsx
@@ -9,9 +9,16 @@ import type { Room } from "matrix-js-sdk/src/matrix";
9
import RoomListStoreV3 from "../../../stores/room-list-v3/RoomListStoreV3";
10
11
export interface RoomListViewState {
12
+ /**
13
+ * A list of rooms to be displayed in the left panel.
14
+ */
15
rooms: Room[];
16
}
17
18
+/**
19
+ * View model for the new room list
20
+ * @see {@link RoomListViewState} for more information about what this view model returns.
21
22
export function useRoomListViewModel(): RoomListViewState {
23
const rooms = RoomListStoreV3.instance.getSortedRooms();
24
return { rooms };
0 commit comments