You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-20 16:22:28 +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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user