mirror of
https://github.com/element-hq/element-web
synced 2024-11-27 19:56:47 +03:00
Fix toggle for email notifications
The function doesn't receive an event, it receives a boolean. Fixes https://github.com/vector-im/riot-web/issues/8837
This commit is contained in:
parent
86c49d5807
commit
ee8a027b4c
1 changed files with 2 additions and 2 deletions
|
@ -132,9 +132,9 @@ module.exports = React.createClass({
|
|||
});
|
||||
},
|
||||
|
||||
onEnableEmailNotificationsChange: function(address, event) {
|
||||
onEnableEmailNotificationsChange: function(address, checked) {
|
||||
let emailPusherPromise;
|
||||
if (event.target.checked) {
|
||||
if (checked) {
|
||||
const data = {};
|
||||
data['brand'] = SdkConfig.get().brand || 'Riot';
|
||||
emailPusherPromise = UserSettingsStore.addEmailPusher(address, data);
|
||||
|
|
Loading…
Reference in a new issue