fix: open bot handled conversations on team takeover

This commit is contained in:
Sojan Jose
2026-07-02 21:15:18 -07:00
parent 26691aa9ed
commit 14d7df5e50
2 changed files with 9 additions and 1 deletions
@@ -14,6 +14,10 @@ module AssignmentHandler
validate_current_assignee_team
self.assignee ||= find_assignee_from_team
return if assignee_id.blank?
self.status = :open if assignee_agent_bot_id.present? && pending?
self.assignee_agent_bot = nil
end
def validate_current_assignee_team