From 7c17957ec7004e580b25b00a0fd2e961fe76b8f4 Mon Sep 17 00:00:00 2001 From: Molkobain Date: Wed, 21 Feb 2024 11:08:50 +0100 Subject: [PATCH] =?UTF-8?q?N=C2=B07157=20-=20Fix=20subscription=20check=20?= =?UTF-8?q?when=20no=20existing=20lnk=20yet?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sources/Service/Notification/NotificationsService.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sources/Service/Notification/NotificationsService.php b/sources/Service/Notification/NotificationsService.php index d0caf209f..810e27b1c 100644 --- a/sources/Service/Notification/NotificationsService.php +++ b/sources/Service/Notification/NotificationsService.php @@ -105,7 +105,7 @@ class NotificationsService { // Check if the user is already subscribed to the action notification $oSubscribedActionsNotificationsSet = NotificationsRepository::GetInstance()->SearchSubscriptionByTriggerContactAndAction($oTrigger->GetKey(), $oRecipient->GetKey(), $oActionNotification->GetKey()); if ($oSubscribedActionsNotificationsSet->Count() === 0) { - return false; + return true; } // Return the subscribed status