feat: Support link unfurling for all the channels within the same connected channel account. (#8033)

This commit is contained in:
Muhsin Keloth
2023-10-08 17:55:03 +05:30
committed by GitHub
parent 1b63adfb2e
commit 26e8877cd9
6 changed files with 130 additions and 22 deletions

View File

@@ -19,7 +19,7 @@ class Integrations::Slack::IncomingMessageBuilder
elsif create_message?
create_message
elsif link_shared?
SlackUnfurlJob.perform_later(params, integration_hook)
SlackUnfurlJob.perform_later(params)
end
end
@@ -72,7 +72,7 @@ class Integrations::Slack::IncomingMessageBuilder
end
def link_shared?
params[:event][:type] == 'link_shared' && integration_hook
params[:event][:type] == 'link_shared'
end
def message