 
         _.extend params, action: doDelete
         LayoutActionCreator.displayModal params
-
-    componentWillUnmount: ->
-        success = (error, message) =>
-            msg = "#{t "message action draft ok"}"
-            LayoutActionCreator.notify msg, autoclose: true
-
-            # reload conversation to update its length
-            if message and message.conversationID?
-                cid = message.conversationID
-                MessageActionCreator.fetchConversation cid
-
-        unless (hasChanged = @props.lastUpdate isnt @state.date)
-            message = @state
-            error = null
-            setTimeout ->
-                success error, message
-            , 0
-            return
-
-        # Show Modal
-        init = =>
-            @showModal
-                title       : t 'app confirm delete'
-                subtitle    : t 'compose confirm keep draft'
-                closeLabel  : t 'compose confirm draft keep'
-                actionLabel : t 'compose confirm draft delete'
-                closeModal  : =>
-                    LayoutActionCreator.hideModal()
-                    MessageActionCreator.send @state, (error, message) ->
-                        if error? or not message?
-                            msg = "#{t "message action draft ko"} #{error}"
-                            LayoutActionCreator.alertError msg
-                            success error, message
-                            return
-
-                        success error, message
-
-        setTimeout init, 0
-
-    getInitialState: ->
-        MessageUtils.makeReplyMessage @props
 
     saveDraft: (event) ->
         event.preventDefault() if event?

    getDefaultProps: ->
        layout: 'full'

    shouldComponentUpdate: (nextProps, nextState) ->
        !!nextProps.accounts


        else
            @finalRedirect()

    showModal: (params, success) ->
        return if @isNew()

