feat: Add multiline support for channel greeting message (#2952)

This commit is contained in:
Fayaz Ahmed
2021-09-08 15:07:24 +05:30
committed by GitHub
parent 41314157c2
commit 2821777e93
6 changed files with 174 additions and 57 deletions

View File

@@ -30,6 +30,9 @@ class MessageTemplates::HookExecutionService
end
def should_send_greeting?
# should not send if its a tweet message
return false if conversation.tweet?
first_message_from_contact? && inbox.greeting_enabled? && inbox.greeting_message.present?
end