diff --git a/server/lib/notifications/agents/pushover.ts b/server/lib/notifications/agents/pushover.ts index 6c8f06dc6..f8364c3f2 100644 --- a/server/lib/notifications/agents/pushover.ts +++ b/server/lib/notifications/agents/pushover.ts @@ -173,12 +173,12 @@ class PushoverAgent NotificationAgentKey.PUSHOVER, type ) && - payload.notifyUser.settings?.pushoverApplicationToken && - payload.notifyUser.settings?.pushoverUserKey && - payload.notifyUser.settings.pushoverApplicationToken !== - settings.options.accessToken && - payload.notifyUser.settings?.pushoverUserKey !== - settings.options.userToken + payload.notifyUser.settings.pushoverApplicationToken && + payload.notifyUser.settings.pushoverUserKey && + (payload.notifyUser.settings.pushoverApplicationToken !== + settings.options.accessToken || + payload.notifyUser.settings.pushoverUserKey !== + settings.options.userToken) ) { logger.debug('Sending Pushover notification', { label: 'Notifications',