Skip to content

Commit

Permalink
refactor: Use processed message content for slack (#9349)
Browse files Browse the repository at this point in the history
  • Loading branch information
scmmishra committed May 6, 2024
1 parent 0914d4d commit 64283b3
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions lib/integrations/slack/send_on_slack_service.rb
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,12 @@ def format_message_content
end

def message_text
if message.content.present?
message.content.gsub(MENTION_REGEX, '\1')
content = message.processed_message_content || message.content

if content.present?
content.gsub(MENTION_REGEX, '\1')
else
message.content
content
end
end

Expand Down

0 comments on commit 64283b3

Please sign in to comment.