chore: move lib to services

This commit is contained in:
Muhsin Keloth
2023-08-16 15:47:35 +05:30
parent b89c917198
commit d42206e03b
19 changed files with 4 additions and 0 deletions
@@ -39,6 +39,10 @@ class Integrations::Slack::IncomingMessageBuilder
params[:event][:user].present? && params[:event][:subtype].blank?
end
def valid_event_subtype?
params[:event][:subtype].blank? || params[:event][:subtype] == 'file_share'
end
def supported_event?
hook_verification? || SUPPORTED_EVENTS.include?(params[:event][:type])
end