@@ -19,7 +19,7 @@ class MessageTemplates::HookExecutionService
|
||||
end
|
||||
|
||||
def should_send_greeting?
|
||||
first_message_from_contact? && conversation.inbox.greeting_enabled?
|
||||
first_message_from_contact? && conversation.inbox.greeting_enabled? && conversation.inbox.greeting_message.present?
|
||||
end
|
||||
|
||||
def email_collect_was_sent?
|
||||
|
||||
@@ -17,10 +17,6 @@ class MessageTemplates::Template::Greeting
|
||||
|
||||
def greeting_message_params
|
||||
content = @conversation.inbox&.greeting_message
|
||||
if content.blank?
|
||||
content = I18n.t('conversations.templates.greeting_message_body',
|
||||
account_name: account.name)
|
||||
end
|
||||
|
||||
{
|
||||
account_id: @conversation.account_id,
|
||||
|
||||
Reference in New Issue
Block a user