Fix RoomSettings
Don't enable encryption unless the box is checked!
This commit is contained in:
parent
e018eef9fa
commit
3ea746db1d
1 changed files with 1 additions and 1 deletions
|
@ -260,7 +260,7 @@ module.exports = React.createClass({
|
||||||
if (!this.refs.encrypt) { return q(); }
|
if (!this.refs.encrypt) { return q(); }
|
||||||
|
|
||||||
var encrypt = this.refs.encrypt.checked;
|
var encrypt = this.refs.encrypt.checked;
|
||||||
if (encrypt) { return q(); }
|
if (!encrypt) { return q(); }
|
||||||
|
|
||||||
var roomId = this.props.room.roomId;
|
var roomId = this.props.room.roomId;
|
||||||
return MatrixClientPeg.get().sendStateEvent(
|
return MatrixClientPeg.get().sendStateEvent(
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue