diff --git a/src/components/views/rooms/RoomList.js b/src/components/views/rooms/RoomList.js index 4305835dbd..e48f19d143 100644 --- a/src/components/views/rooms/RoomList.js +++ b/src/components/views/rooms/RoomList.js @@ -544,17 +544,20 @@ module.exports = React.createClass({ const RoomDirectoryButton = sdk.getComponent('elements.RoomDirectoryButton'); const CreateRoomButton = sdk.getComponent('elements.CreateRoomButton'); + let tip = null; + switch (section) { case 'im.vector.fake.direct': - return
+ tip =
{ _t( "Press to start a chat with someone", {}, { 'StartChatButton': }, ) }
; + break; case 'im.vector.fake.recent': - return
+ tip =
{ _t( "You're not in any rooms yet! Press to make a room or"+ " to browse the directory", @@ -565,6 +568,13 @@ module.exports = React.createClass({ }, ) }
; + break; + } + + if (tip) { + return
+ { tip } +
; } // We don't want to display drop targets if there are no room tiles to drag'n'drop