Auto expand room list on search
This commit is contained in:
parent
1b89e75a5d
commit
8773d67df7
4 changed files with 41 additions and 1 deletions
|
@ -194,6 +194,17 @@ export default class RoomList2 extends React.Component<IProps, IState> {
|
|||
show_room_tile: true, // to make sure the room gets scrolled into view
|
||||
});
|
||||
}
|
||||
} else if (payload.action === Action.StartRoomFilter) {
|
||||
this.state.layouts.forEach(x => {
|
||||
x.saveCollapsedState();
|
||||
x.isCollapsed = false;
|
||||
});
|
||||
this.forceUpdate();
|
||||
} else if (payload.action === Action.StopRoomFilter) {
|
||||
this.state.layouts.forEach(x => {
|
||||
x.restoreCollapsedState();
|
||||
});
|
||||
this.forceUpdate();
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue