         # new draft
         else
             account = @props.accounts.get @props.selectedAccountID
+
             state = MessageUtils.makeReplyMessage(
                 account.get('login'),
                 @props.inReplyTo,


            @props.isSaving = false

    onDelete: (e) ->
        e.preventDefault()

        subject = @props.message.get 'subject'
        if subject? and subject isnt ''
            params = subject: subject
            confirmMessage = t 'mail confirm delete', params
        else
            confirmMessage = t 'mail confirm delete nosubject'

        doDelete = =>
            LayoutActionCreator.hideModal()
            messageID = @props.message.get('id')

            # this will prevent asking
            # a second time when unmounting component
            @setState isDeleted: true, =>
                MessageActionCreator.delete {messageID}, (error) =>
                    unless error?
                        if @props.callback
                            @props.callback()
                        else
                            # Close Message Box
                            @redirect
                                direction: 'first'
                                action: 'account.mailbox.messages'
                                parameters: [
                                    @props.selectedAccountID
                                    @props.selectedMailboxID
                                ]
                                fullWidth: true

        modal =
            title       : t 'mail confirm delete title'
            subtitle    : confirmMessage
            closeLabel  : t 'mail confirm delete cancel'
            actionLabel : t 'mail confirm delete delete'
            action      : doDelete
        LayoutActionCreator.displayModal modal


    onToggleCc: (e) ->
        toggle = (e) -> e.classList.toggle 'shown'

    # Get the file picker component (method used to pass it to the editor)
    getPicker: ->
        return @refs.attachments

# set source of attached images
cleanHTML = (html) ->
