Fix RoomSettings

Don't enable encryption unless the box is checked!
pull/21833/head
Richard van der Hoff 2017-02-03 11:20:36 +00:00 committed by GitHub
parent e018eef9fa
commit 3ea746db1d
1 changed files with 1 additions and 1 deletions

View File

@ -260,7 +260,7 @@ module.exports = React.createClass({
if (!this.refs.encrypt) { return q(); }
var encrypt = this.refs.encrypt.checked;
if (encrypt) { return q(); }
if (!encrypt) { return q(); }
var roomId = this.props.room.roomId;
return MatrixClientPeg.get().sendStateEvent(