       # add message before message typing loader
       if @el.find('.zammad-chat-message--typing').size()
         @lastAddedType = 'typing-placeholder'
-        @el.find('.zammad-chat-message--typing').before messageElement 
+        @el.find('.zammad-chat-message--typing').before messageElement
       else
         @lastAddedType = 'message--customer'
         @el.find('.zammad-chat-body').append messageElement


      @ws.onopen = =>
        console.log('ws connected')
        @send 'chat_status'

      @ws.onmessage = @onWebSocketMessage


        position: position

    onAgentTypingStart: =>
      if @stopTypingId
        clearTimeout(@stopTypingId)
      @stopTypingId = setTimeout(@onAgentTypingEnd, 3000)

      # never display two typing indicators
      return if @el.find('.zammad-chat-message--typing').size()

