mirror of
https://github.com/vector-im/element-web.git
synced 2025-08-25 08:21:41 +02:00
Fix RoomSettings
Don't enable encryption unless the box is checked!
This commit is contained in:
parent
e018eef9fa
commit
3ea746db1d
@ -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…
x
Reference in New Issue
Block a user