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

Commit

Permalink
Merge pull request #2481 from matrix-org/bwindels/showroomsandpeoplew…
Browse files Browse the repository at this point in the history
…henempty

Fix: show rooms and people section when empty while filtering
  • Loading branch information
bwindels committed Jan 23, 2019
2 parents 4c12b2c + 7d41658 commit 45c4ca3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/views/rooms/RoomList.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand Down

0 comments on commit 45c4ca3

Please sign in to comment.