parameters: (self)
return_statement: return data
docstring: Override to remove name and return livechat username if applicable.
docstring_summary: Override to remove name and return livechat username if applicable.
docstring_tokens: Override to remove name and return livechat username if applicable .
function: def _notify_typing_partner_data(self):
          """Override to remove name and return livechat username if applicable."""
          data = super()._notify_typing_partner_data()
          if self.channel_type == 'livechat' and self.env.user.partner_id.user_livechat_username:
              data['partner_name'] = self.env.user.partner_id.user_livechat_username  # for API compatibility in stable
              data['livechat_username'] = self.env.user.partner_id.user_livechat_username
          return data
function_tokens: def _notify_typing_partner_data ( self ) : data = super ( ) . _notify_typing_partner_data ( ) if self . channel_type == 'livechat' and self . env . user . partner_id . user_livechat_username : data [ 'partner_name' ] = self . env . user . partner_id . user_livechat_username # for API compatibility in stable data [ 'livechat_username' ] = self . env . user . partner_id . user_livechat_username return data