Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit 8a0ee2f

Browse files
committed
iterate PR
Signed-off-by: Michael Telatynski <[email protected]>
1 parent 75c3a10 commit 8a0ee2f

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/components/structures/RoomSubList.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,12 +129,12 @@ export default class RoomSubList extends React.PureComponent {
129129
if (this.state.hidden && !this.props.forceExpand &&
130130
this.props.list.some((r) => r.roomId === payload.room_id)
131131
) {
132-
this.onClick();
132+
this.toggle();
133133
}
134134
}
135135
};
136136

137-
onClick = (ev) => {
137+
toggle = () => {
138138
if (this.isCollapsibleOnClick()) {
139139
// The header isCollapsible, so the click is to be interpreted as collapse and truncation logic
140140
const isHidden = !this.state.hidden;
@@ -147,6 +147,10 @@ export default class RoomSubList extends React.PureComponent {
147147
}
148148
};
149149

150+
onClick = (ev) => {
151+
this.toggle();
152+
};
153+
150154
onHeaderKeyDown = (ev) => {
151155
switch (ev.key) {
152156
case Key.ARROW_LEFT:

0 commit comments

Comments
 (0)