Merge branch 'develop' into inline-edit

This commit is contained in:
Sivin Varghese
2026-04-06 12:46:03 +05:30
committed by GitHub
2 changed files with 20 additions and 6 deletions
+2 -1
View File
@@ -17,9 +17,10 @@ class AgentBotListener < BaseListener
def conversation_updated(event)
conversation = extract_conversation_and_account(event)[0]
changed_attributes = extract_changed_attributes(event)
inbox = conversation.inbox
event_name = __method__.to_s
payload = conversation.webhook_data.merge(event: event_name)
payload = conversation.webhook_data.merge(event: event_name, changed_attributes: changed_attributes)
agent_bots_for(inbox, conversation).each { |agent_bot| process_webhook_bot_event(agent_bot, payload) }
end