diff --git a/src/components/structures/RoomDirectory.js b/src/components/structures/RoomDirectory.js index 0111ee31..a42e76b4 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');