From ef027706b98d158a4ac5357fe19a3ef54e7adecc Mon Sep 17 00:00:00 2001 From: David Baker Date: Thu, 20 Aug 2015 16:47:25 +0100 Subject: [PATCH] Offer to join a room if you're not in it --- skins/base/views/organisms/RoomView.js | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/skins/base/views/organisms/RoomView.js b/skins/base/views/organisms/RoomView.js index b6bfedf1..7a22b017 100644 --- a/skins/base/views/organisms/RoomView.js +++ b/skins/base/views/organisms/RoomView.js @@ -83,9 +83,17 @@ module.exports = React.createClass({ render: function() { if (!this.state.room) { - return ( -
- ); + if (this.props.roomId) { + return ( +
+ +
+ ); + } else { + return ( +
+ ); + } } var myUserId = MatrixClientPeg.get().credentials.userId;