   getEditModeClassNames: -> classnames
     'ChatItem-updateMessageForm': yes
     'hidden' : not @state.editMode
+    'visible' : @state.editMode
 
 
   getMediaObjectClassNames: -> classnames


  editPost: ->

    @setState editMode: yes
    domNode = @refs.EditMessageTextarea.getDOMNode()
    kd.utils.wait 100, ->
      kd.utils.moveCaretToEnd domNode


  updateMessage: ->

    messageId = @props.message.get '_id'
    ActivityFlux.actions.message.unsetMessageEditMode messageId

    ActivityFlux.actions.message.editMessage(
      @props.message.get('id')
