parameters: (self, pinned=False)
docstring: Override to clean an empty livechat channel.
           This is typically called when the operator send a chat request to a website.visitor
           but don't speak to him and closes the chatter.
           This allows operators to send the visitor a new chat request.
           If active empty livechat channel,
           delete mail_channel as not useful to keep empty chat
docstring_summary: Override to clean an empty livechat channel.
           This is typically called when the operator send a chat request to a website.visitor
           but don't speak to him and closes the chatter.
           This allows operators to send the visitor a new chat request.
           If active empty livechat channel,
           delete mail_channel as not useful to keep empty chat
docstring_tokens: Override to clean an empty livechat channel . This is typically called when the operator send a chat request to a website . visitor but don t speak to him and closes the chatter . This allows operators to send the visitor a new chat request . If active empty livechat channel delete mail_channel as not useful to keep empty chat
function: def _execute_channel_pin(self, pinned=False):
          """ Override to clean an empty livechat channel.
           This is typically called when the operator send a chat request to a website.visitor
           but don't speak to him and closes the chatter.
           This allows operators to send the visitor a new chat request.
           If active empty livechat channel,
           delete mail_channel as not useful to keep empty chat
           """
          super(MailChannel, self)._execute_channel_pin(pinned)
          if self.livechat_active and not self.message_ids:
              self.unlink()
function_tokens: def _execute_channel_pin ( self , pinned = False ) : super ( MailChannel , self ) . _execute_channel_pin ( pinned ) if self . livechat_active and not self . message_ids : self . unlink ( )