fix: show alerts even with SMS and Email disabled

This commit is contained in:
André Sá 2021-10-15 14:45:31 +01:00
parent ff474ee507
commit a0b0c451d8

View file

@ -38,8 +38,9 @@ function checkNotification (plugins) {
const notifications = plugins.getNotificationConfig()
const smsEnabled = utils.isActive(notifications.sms)
const emailEnabled = utils.isActive(notifications.email)
const notificationCenterEnabled = utils.isActive(notifications.notificationCenter)
if (!smsEnabled && !emailEnabled) return Promise.resolve()
if (!(notificationCenterEnabled || smsEnabled || emailEnabled)) return Promise.resolve()
return getAlerts(plugins)
.then(alerts => {