feat: Support case insensitive tags for Slack note prefix (#5123)

Co-authored-by: Pranav Raj S <pranav@chatwoot.com>
This commit is contained in:
Yemin Sajid
2022-07-28 10:27:39 +06:00
committed by GitHub
parent 21912155f2
commit 7f48cffeb3
2 changed files with 21 additions and 1 deletions

View File

@@ -77,7 +77,7 @@ class Integrations::Slack::IncomingMessageBuilder
end
def private_note?
params[:event][:text].strip.starts_with?('note:', 'private:')
params[:event][:text].strip.downcase.starts_with?('note:', 'private:')
end
def create_message