diff --git a/app/javascript/sdk/IFrameHelper.js b/app/javascript/sdk/IFrameHelper.js index b5cc35d7c..a7f9dc70a 100644 --- a/app/javascript/sdk/IFrameHelper.js +++ b/app/javascript/sdk/IFrameHelper.js @@ -152,7 +152,7 @@ export const IFrameHelper = { if (window.$chatwoot.user) { IFrameHelper.sendMessage('set-user', window.$chatwoot.user); } - + dispatchWindowEvent({ eventName: CHATWOOT_READY }); window.playAudioAlert = () => {}; diff --git a/app/models/agent_bot.rb b/app/models/agent_bot.rb index f1089c543..8e8a0684e 100644 --- a/app/models/agent_bot.rb +++ b/app/models/agent_bot.rb @@ -26,7 +26,7 @@ class AgentBot < ApplicationRecord has_many :agent_bot_inboxes, dependent: :destroy_async has_many :inboxes, through: :agent_bot_inboxes has_many :messages, as: :sender, dependent: :restrict_with_exception - belongs_to :account, dependent: :destroy_async, optional: true + belongs_to :account, optional: true def available_name name