   componentDidUpdate: ->
 
     @setState editMode: @props.message.get '__isEditing'
+    @focusInputOnEdit()
 
 
   getAccountInfo: ->

    isMarkUserAsTrollModalVisible : no
    showItemMenu                  : yes


  constructor: (props) ->

    super props

    @setState isDeleting: no


  focusInputOnEdit: ->

    domNode = @refs.EditMessageTextarea.getDOMNode()

    kd.utils.wait 100, ->
      kd.utils.moveCaretToEnd domNode


  editPost: ->

    messageId = @props.message.get '_id'

    ActivityFlux.actions.message.setMessageEditMode messageId
    @focusInputOnEdit()



  showDeletePostPromptModal: ->
