(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
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
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
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()
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 ( )