diff --git a/src/components/structures/RoomView.js b/src/components/structures/RoomView.js index 854b154505..1fab9315bf 100644 --- a/src/components/structures/RoomView.js +++ b/src/components/structures/RoomView.js @@ -507,7 +507,7 @@ module.exports = React.createClass({ userHasUsedEncryption = localStorage.getItem('mx_user_has_used_encryption'); } if (!userHasUsedEncryption) { - var QuestionDialog = sdk.getComponent("dialogs.QuestionDialog"); + const QuestionDialog = sdk.getComponent("dialogs.QuestionDialog"); Modal.createDialog(QuestionDialog, { title: "Warning!", hasCancelButton: false,