diff --git a/src/components/views/rooms/RoomSettings.js b/src/components/views/rooms/RoomSettings.js index b6f820efd8..5bd387681c 100644 --- a/src/components/views/rooms/RoomSettings.js +++ b/src/components/views/rooms/RoomSettings.js @@ -228,8 +228,27 @@ module.exports = React.createClass({ }, _onHistoryRadioToggle: function(ev) { - this.setState({ - history_visibility: ev.target.value + var self = this; + var QuestionDialog = sdk.getComponent("dialogs.QuestionDialog"); + + // cancel the click unless the user confirms it + ev.preventDefault(); + + Modal.createDialog(QuestionDialog, { + title: "Privacy warning", + description: +