chore: Discard activities from email notifiable messages (#3989)

This commit is contained in:
Sojan Jose
2022-02-15 18:15:45 +05:30
committed by GitHub
parent 505c93c467
commit 5ad7e93059
2 changed files with 9 additions and 1 deletions

View File

@@ -137,7 +137,8 @@ class Message < ApplicationRecord
end
def email_notifiable_message?
return false if private? || incoming?
return false if private?
return false if %w[outgoing template].exclude?(message_type)
return false if template? && %w[input_csat text].exclude?(content_type)
true