                 if error? or not message?
                     msg = "#{t "message action draft ko"} #{error}"
                     LayoutActionCreator.alertError msg
-                    success error, message
                     return
 
                 fetch error, message

        return if @isNew()

        doDelete = =>
            messageID = @state.id
            MessageActionCreator.delete {messageID}
            LayoutActionCreator.hideModal()

    hasChanged: (props, state) ->
        (props.lastUpdate and props.lastUpdate isnt state.date) or false

    resetChange: ->
        delete @props.lastUpdate

    componentWillUnmount: ->
        @closeSaveDraft @state, hasChanged: @hasChanged(@props, @state)

