mirror of
https://github.com/lingble/chatwoot.git
synced 2025-11-01 19:48:08 +00:00
Fix: sentry issue for slack incoming files check (#4656)
Interpreter error for nil. any? added nil. present? Fixes: https://sentry.io/share/issue/48c10d26490f4bdaab78c82244fcea98/
This commit is contained in:
@@ -37,7 +37,7 @@ class Integrations::Slack::IncomingMessageBuilder
|
||||
if message.present?
|
||||
SUPPORTED_MESSAGE_TYPES.include?(message[:type]) && !attached_file_message?
|
||||
else
|
||||
params[:event][:files].any? && !attached_file_message?
|
||||
params[:event][:files].present? && !attached_file_message?
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user