mirror of
				https://github.com/lingble/chatwoot.git
				synced 2025-11-03 20:48:07 +00:00 
			
		
		
		
	chore: remove unnecessary dependent destroy (#4104)
This commit is contained in:
		@@ -152,7 +152,7 @@ export const IFrameHelper = {
 | 
			
		||||
      if (window.$chatwoot.user) {
 | 
			
		||||
        IFrameHelper.sendMessage('set-user', window.$chatwoot.user);
 | 
			
		||||
      }
 | 
			
		||||
      
 | 
			
		||||
 | 
			
		||||
      dispatchWindowEvent({ eventName: CHATWOOT_READY });
 | 
			
		||||
 | 
			
		||||
      window.playAudioAlert = () => {};
 | 
			
		||||
 
 | 
			
		||||
@@ -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
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user