Node.js based forum software built for the modern web
closes #6960
Barış Soner Uşaklıfc1c4acccf4f
diff --git a/src/controllers/accounts/settings.js b/src/controllers/accounts/settings.jsindex 55181e2a25..9cc3561c5f 100644--- a/src/controllers/accounts/settings.js+++ b/src/controllers/accounts/settings.js@@ -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);},