Automation enhancement (#4087)
This commit is contained in:
@@ -210,6 +210,8 @@ class Conversation < ApplicationRecord
|
||||
end
|
||||
|
||||
def dispatcher_dispatch(event_name)
|
||||
return if Current.executed_by.present? && Current.executed_by.instance_of?(AutomationRule)
|
||||
|
||||
Rails.configuration.dispatcher.dispatch(event_name, Time.zone.now, conversation: self, notifiable_assignee_change: notifiable_assignee_change?)
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user