From 08cefb2bb88d40f987ce448a8c727432203adea2 Mon Sep 17 00:00:00 2001 From: Tanmay Deep Sharma Date: Tue, 27 Jan 2026 17:06:04 +0530 Subject: [PATCH] do not send notifications for failed messages --- app/services/messages/new_message_notification_service.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/services/messages/new_message_notification_service.rb b/app/services/messages/new_message_notification_service.rb index 49f36a072..2a05d2c3a 100644 --- a/app/services/messages/new_message_notification_service.rb +++ b/app/services/messages/new_message_notification_service.rb @@ -3,6 +3,7 @@ class Messages::NewMessageNotificationService def perform return unless message.notifiable? + return if message.status == 'failed' notify_conversation_assignee notify_participating_users