Offer to join a room if you're not in it
This commit is contained in:
parent
2351ad997c
commit
ef027706b9
1 changed files with 11 additions and 3 deletions
|
@ -83,9 +83,17 @@ module.exports = React.createClass({
|
||||||
|
|
||||||
render: function() {
|
render: function() {
|
||||||
if (!this.state.room) {
|
if (!this.state.room) {
|
||||||
return (
|
if (this.props.roomId) {
|
||||||
<div />
|
return (
|
||||||
);
|
<div>
|
||||||
|
<button onClick={this.onJoinButtonClicked}>Join Room</button>
|
||||||
|
</div>
|
||||||
|
);
|
||||||
|
} else {
|
||||||
|
return (
|
||||||
|
<div />
|
||||||
|
);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
var myUserId = MatrixClientPeg.get().credentials.userId;
|
var myUserId = MatrixClientPeg.get().credentials.userId;
|
||||||
|
|
Loading…
Reference in a new issue