fix: telegram group chat notifications

This commit is contained in:
Andras Bacsai
2024-05-17 12:09:22 +02:00
parent fec98f45ce
commit edc3b014cd
4 changed files with 30 additions and 22 deletions

View File

@@ -43,7 +43,12 @@ class DeploymentSuccess extends Notification implements ShouldQueue
public function via(object $notifiable): array
{
return setNotificationChannels($notifiable, 'deployments');
$channels = setNotificationChannels($notifiable, 'deployments');
if (isCloud()) {
// TODO: Make batch notifications work with email
$channels = array_diff($channels, ['App\Notifications\Channels\EmailChannel']);
}
return $channels;
}
public function toMail(): MailMessage
{