From c915bf9c0f37c430a9eec1d290b73a5ddeacb101 Mon Sep 17 00:00:00 2001 From: Andras Bacsai Date: Wed, 11 Dec 2024 11:09:53 +0100 Subject: [PATCH] fix: general notifications does not go through email channel --- app/Traits/HasNotificationSettings.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/Traits/HasNotificationSettings.php b/app/Traits/HasNotificationSettings.php index 5a5ae1929..82cbda6ad 100644 --- a/app/Traits/HasNotificationSettings.php +++ b/app/Traits/HasNotificationSettings.php @@ -75,6 +75,10 @@ trait HasNotificationSettings 'slack' => SlackChannel::class, ]; + if ($event === 'general') { + unset($channelMap['email']); + } + foreach ($channelMap as $channel => $channelClass) { if ($this->isNotificationEnabled($channel) && $this->isNotificationTypeEnabled($channel, $event)) { $channels[] = $channelClass;