File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -403,4 +403,16 @@ export enum Action {
403403 * or keyboard event).
404404 */
405405 UserActivity = "user_activity" ,
406+
407+ /**
408+ * Fired to request collapsing or expanding all room list sections.
409+ * Payload: {@link RoomListCollapseAllSectionsPayload}
410+ */
411+ RoomListCollapseAllSections = "room_list_collapse_all_sections" ,
412+
413+ /**
414+ * Fired to report the collapse state of a given room list section.
415+ * Payload: {@link RoomListSectionsCollapseStateChangedPayload}
416+ */
417+ RoomListSectionsCollapseStateChanged = "room_list_sections_collapse_state_changed" ,
406418}
Original file line number Diff line number Diff line change 1+ /*
2+ * Copyright 2026 New Vector Ltd.
3+ *
4+ * SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only OR LicenseRef-Element-Commercial
5+ * Please see LICENSE files in the repository root for full details.
6+ */
7+
8+ import { type ActionPayload } from "../payloads" ;
9+ import { type Action } from "../actions" ;
10+
11+ export interface RoomListCollapseAllSectionsPayload extends ActionPayload {
12+ action : Action . RoomListCollapseAllSections ;
13+ /** true = expand all, false = collapse all */
14+ expand : boolean ;
15+ }
Original file line number Diff line number Diff line change 1+ /*
2+ * Copyright 2026 New Vector Ltd.
3+ *
4+ * SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only OR LicenseRef-Element-Commercial
5+ * Please see LICENSE files in the repository root for full details.
6+ */
7+
8+ import { type ActionPayload } from "../payloads" ;
9+ import { type Action } from "../actions" ;
10+
11+ export interface RoomListSectionsCollapseStateChangedPayload extends ActionPayload {
12+ action : Action . RoomListSectionsCollapseStateChanged ;
13+ /**
14+ * true = all collapsed (header shows "expand all")
15+ * false = some/all expanded (header shows "collapse all")
16+ * null = hide button (flat list or sections disabled)
17+ */
18+ allCollapsed : boolean | null ;
19+ }
You can’t perform that action at this time.
0 commit comments