fix: Automation Bugs and minor enhancements (#3936)

This commit is contained in:
Fayaz Ahmed
2022-02-15 23:36:29 +05:30
committed by GitHub
parent e345a4486d
commit 5ad6db07b4
17 changed files with 203 additions and 129 deletions

View File

@@ -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