mirror of
https://github.com/vector-im/element-web.git
synced 2024-11-17 05:55:00 +08: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
@ -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 New Issue
Block a user