diff --git a/src/components/structures/RoomDirectory.js b/src/components/structures/RoomDirectory.js index 0111ee3108..a42e76b434 100644 --- a/src/components/structures/RoomDirectory.js +++ b/src/components/structures/RoomDirectory.js @@ -414,20 +414,25 @@ module.exports = React.createClass({ ; } else { - const ScrollPanel = sdk.getComponent("structures.ScrollPanel"); - content = - - - { this.getRows() } - -
-
; + const rows = this.getRows(); + if (rows.length == 0) { + content = No rooms to show; + } else { + const ScrollPanel = sdk.getComponent("structures.ScrollPanel"); + content = + + + { this.getRows() } + +
+
; + } } const SimpleRoomHeader = sdk.getComponent('rooms.SimpleRoomHeader');