Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit 3ea746d

Browse files
authored
Fix RoomSettings
Don't enable encryption unless the box is checked!
1 parent e018eef commit 3ea746d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/views/rooms/RoomSettings.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ module.exports = React.createClass({
260260
if (!this.refs.encrypt) { return q(); }
261261

262262
var encrypt = this.refs.encrypt.checked;
263-
if (encrypt) { return q(); }
263+
if (!encrypt) { return q(); }
264264

265265
var roomId = this.props.room.roomId;
266266
return MatrixClientPeg.get().sendStateEvent(

0 commit comments

Comments
 (0)