Merge pull request #2481 from matrix-org/bwindels/showroomsandpeoplewhenempty

Fix: show rooms and people section when empty while filtering
pull/21833/head
Bruno Windels 2019-01-23 09:39:17 +00:00 committed by GitHub
commit 45c4ca3183
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -593,7 +593,7 @@ module.exports = React.createClass({
subListsProps = subListsProps.filter((props => {
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) => {