v1.18.x
Barış Soner Uşaklı 6 years ago
parent 4da3d820d5
commit fc1c4acccf

@ -216,6 +216,11 @@ function getNotificationSettings(userData, callback) {
notificationemail: setting === 'notificationemail',
};
}
if (meta.config.disableChat) {
results.types = results.types.filter(type => type !== 'notificationType_new-chat');
}
var notificationSettings = results.types.map(modifyType).concat(results.privilegedTypes.map(modifyType));
next(null, notificationSettings);
},

Loading…
Cancel
Save