mirror of
https://github.com/SchildiChat/element-web.git
synced 2024-10-01 01:26:12 -04:00
Offer to join a room if you're not in it
This commit is contained in:
parent
2351ad997c
commit
ef027706b9
@ -83,10 +83,18 @@ module.exports = React.createClass({
|
|||||||
|
|
||||||
render: function() {
|
render: function() {
|
||||||
if (!this.state.room) {
|
if (!this.state.room) {
|
||||||
|
if (this.props.roomId) {
|
||||||
|
return (
|
||||||
|
<div>
|
||||||
|
<button onClick={this.onJoinButtonClicked}>Join Room</button>
|
||||||
|
</div>
|
||||||
|
);
|
||||||
|
} else {
|
||||||
return (
|
return (
|
||||||
<div />
|
<div />
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
var myUserId = MatrixClientPeg.get().credentials.userId;
|
var myUserId = MatrixClientPeg.get().credentials.userId;
|
||||||
if (this.state.room.currentState.members[myUserId].membership == 'invite') {
|
if (this.state.room.currentState.members[myUserId].membership == 'invite') {
|
||||||
|
Loading…
Reference in New Issue
Block a user