Offer to join a room if you're not in it

This commit is contained in:
David Baker 2015-08-20 16:47:25 +01:00
parent 2351ad997c
commit ef027706b9
1 changed files with 11 additions and 3 deletions

View File

@ -83,10 +83,18 @@ module.exports = React.createClass({
render: function() {
if (!this.state.room) {
if (this.props.roomId) {
return (
<div>
<button onClick={this.onJoinButtonClicked}>Join Room</button>
</div>
);
} else {
return (
<div />
);
}
}
var myUserId = MatrixClientPeg.get().credentials.userId;
if (this.state.room.currentState.members[myUserId].membership == 'invite') {