You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-22 04:02:40 +03:00
show rooms and people section when empty while filtering
This commit is contained in:
@@ -593,7 +593,7 @@ module.exports = React.createClass({
|
|||||||
|
|
||||||
subListsProps = subListsProps.filter((props => {
|
subListsProps = subListsProps.filter((props => {
|
||||||
const len = props.list.length + (props.extraTiles ? props.extraTiles.length : 0);
|
const len = props.list.length + (props.extraTiles ? props.extraTiles.length : 0);
|
||||||
return len !== 0 || (props.onAddRoom && !this.props.searchFilter);
|
return len !== 0 || props.onAddRoom;
|
||||||
}));
|
}));
|
||||||
|
|
||||||
return subListsProps.reduce((components, props, i) => {
|
return subListsProps.reduce((components, props, i) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user