From 3ea746db1d3e727a49ee9a1340c5d2e428ba2e9f Mon Sep 17 00:00:00 2001 From: Richard van der Hoff Date: Fri, 3 Feb 2017 11:20:36 +0000 Subject: [PATCH] Fix RoomSettings Don't enable encryption unless the box is checked! --- src/components/views/rooms/RoomSettings.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/views/rooms/RoomSettings.js b/src/components/views/rooms/RoomSettings.js index c6d57b7fb8..a23368f5e8 100644 --- a/src/components/views/rooms/RoomSettings.js +++ b/src/components/views/rooms/RoomSettings.js @@ -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(