chore: move lib to services

This commit is contained in:
Muhsin Keloth
2023-08-25 19:01:40 +05:30
parent 6ab964b161
commit 8c1c1a5ab2
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