fix(notif): duplicate notification check logic (#2424)

pull/2413/head^2
TheCatLady 3 years ago committed by GitHub
parent ff28c9bfeb
commit 10651baa67
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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',

Loading…
Cancel
Save