From fca86be077a15bdb70da6a400fc03803698aa546 Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Wed, 6 Sep 2017 10:56:32 +0100 Subject: [PATCH] allow hiding of notification body for privacy reasons Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> --- .../views/settings/Notifications.js | 20 +++++++++++++++++++ src/i18n/strings/en_EN.json | 1 + 2 files changed, 21 insertions(+) diff --git a/src/components/views/settings/Notifications.js b/src/components/views/settings/Notifications.js index a58b5d580e..6e497d6225 100644 --- a/src/components/views/settings/Notifications.js +++ b/src/components/views/settings/Notifications.js @@ -116,6 +116,11 @@ module.exports = React.createClass({ UserSettingsStore.setEnableNotifications(event.target.checked); }, + onEnableDesktopNotificationBodyChange: function(event) { + UserSettingsStore.setEnableNotificationBody(event.target.checked); + this.forceUpdate(); + }, + onEnableEmailNotificationsChange: function(address, event) { var emailPusherPromise; if (event.target.checked) { @@ -831,6 +836,21 @@ module.exports = React.createClass({ +