From 10651baa675993f7109989bbac67f54661c8693f Mon Sep 17 00:00:00 2001 From: TheCatLady <52870424+TheCatLady@users.noreply.github.com> Date: Fri, 14 Jan 2022 16:20:29 -0800 Subject: [PATCH] fix(notif): duplicate notification check logic (#2424) --- server/lib/notifications/agents/pushover.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) 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',