 
 
   cancelEdit: ->
-
-    return @closeDeletePostModal()  if @state.isDeleting
 
     messageId = @props.message.get '_id'
     ActivityFlux.actions.message.unsetMessageEditMode messageId, @props.channelId, yes


  updateMessage: ->

    return @deletePostButtonHandler()  if @state.isDeleting

    value = @refs.editInput.getValue().trim()
    return @setState isDeleting: yes  unless value

    messageId = @props.message.get '_id'



    return null  unless @props.showItemMenu

    <MessageItemMenu ref='MessageItemMenu' message={@props.message}/>


  renderEmbedBox: ->
