chore: Disable email processing for suspended accounts (#5762)
- Disable email processing for suspended accounts
This commit is contained in:
@@ -7,6 +7,8 @@ class SupportMailbox < ApplicationMailbox
|
||||
:decorate_mail
|
||||
|
||||
def process
|
||||
# to turn off spam conversation creation
|
||||
return unless @account.active?
|
||||
# prevent loop from chatwoot notification emails
|
||||
return if notification_email_from_chatwoot?
|
||||
|
||||
|
||||
Reference in New Issue
Block a user