1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-11-11 20:22:36 +03:00

don't warn when disabling crypto

This commit is contained in:
Matthew Hodgson
2016-09-17 21:56:10 +01:00
parent 5fa5489bbd
commit 53bb6b96ce

View File

@@ -446,6 +446,8 @@ module.exports = React.createClass({
}, },
onEnableEncryptionClick() { onEnableEncryptionClick() {
if (!this.refs.encrypt.checked) return;
var QuestionDialog = sdk.getComponent("dialogs.QuestionDialog"); var QuestionDialog = sdk.getComponent("dialogs.QuestionDialog");
Modal.createDialog(QuestionDialog, { Modal.createDialog(QuestionDialog, {
title: "Warning!", title: "Warning!",