fix: Automation Bugs and minor enhancements (#3936)
This commit is contained in:
@@ -162,6 +162,7 @@ class Conversation < ApplicationRecord
|
||||
def execute_after_update_commit_callbacks
|
||||
notify_status_change
|
||||
create_activity
|
||||
notify_conversation_updation
|
||||
end
|
||||
|
||||
def ensure_snooze_until_reset
|
||||
@@ -181,6 +182,10 @@ class Conversation < ApplicationRecord
|
||||
dispatcher_dispatch(CONVERSATION_CREATED)
|
||||
end
|
||||
|
||||
def notify_conversation_updation
|
||||
dispatcher_dispatch(CONVERSATION_UPDATED)
|
||||
end
|
||||
|
||||
def self_assign?(assignee_id)
|
||||
assignee_id.present? && Current.user&.id == assignee_id
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user