fix: clear human assignee for connected bot owner

This commit is contained in:
Sojan Jose
2026-07-06 22:52:37 -07:00
parent 99d4ad8f99
commit 7bde6f23b9
+4 -1
View File
@@ -291,7 +291,10 @@ class Conversation < ApplicationRecord
def set_active_bot_conversation
self.status = :pending
self.assignee_agent_bot = inbox.agent_bot if inbox.agent_bot_inbox&.active? && assignee_id.blank?
return unless inbox.agent_bot_inbox&.active? && assignee_id.blank?
self.assignee = nil
self.assignee_agent_bot = inbox.agent_bot
end
def notify_conversation_creation