From 0386a1e048d610e03b473d61ac0f1408b5dd6f73 Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Fri, 19 Oct 2018 14:32:49 +0200 Subject: [PATCH] get rid of obsolete showEmpty prop --- src/components/structures/RoomSubList.js | 2 -- src/components/views/rooms/RoomList.js | 1 - 2 files changed, 3 deletions(-) diff --git a/src/components/structures/RoomSubList.js b/src/components/structures/RoomSubList.js index 5833a8b505..d703a82664 100644 --- a/src/components/structures/RoomSubList.js +++ b/src/components/structures/RoomSubList.js @@ -56,7 +56,6 @@ const RoomSubList = React.createClass({ emptyContent: PropTypes.node, // content shown if the list is empty headerItems: PropTypes.node, // content shown in the sublist header extraTiles: PropTypes.arrayOf(PropTypes.node), // extra elements added beneath tiles - showEmpty: PropTypes.bool, }, getInitialState: function() { @@ -72,7 +71,6 @@ const RoomSubList = React.createClass({ }, // NOP extraTiles: [], isInvite: false, - showEmpty: true, }; }, diff --git a/src/components/views/rooms/RoomList.js b/src/components/views/rooms/RoomList.js index 005c19053e..180112ddfc 100644 --- a/src/components/views/rooms/RoomList.js +++ b/src/components/views/rooms/RoomList.js @@ -508,7 +508,6 @@ module.exports = React.createClass({ const defaultProps = { collapsed: self.props.collapsed, searchFilter: self.props.searchFilter, - showEmpty: showEmpty, incomingCall: self.state.incomingCall, }; return subListsProps.reduce((components, props, i) => {