                 action = 'message'
                 params =
                     messageID: message.get 'id'
+
         url = @buildUrl
             direction: 'second'
             action: action
             parameters: params
+
         if not @props.edited
             tag = a
         else

    render: ->
        message = @props.message
        flags = message.get('flags')
        classes = classer
            message: true
            read: message.get 'isRead'
            active: @props.isActive
            edited: @props.edited
            'unseen': flags.indexOf(MessageFlags.SEEN) is -1
            'has-attachments': message.get 'hasAttachments'
            'is-fav': flags.indexOf(MessageFlags.FLAGGED) isnt -1

        isDraft   = message.get('flags').indexOf(MessageFlags.DRAFT) isnt -1

        if isDraft and not @props.isTrash
            action = 'edit'

        date    = MessageUtils.formatDate message.get('createdAt'), compact
        avatar  = MessageUtils.getAvatar message
        text    = message.get('text')

        li
            className:              classes
            key:                    @props.key
            'data-message-id':      message.get('id')
            'data-conversation-id': message.get('conversationID')
            draggable:              not @props.edited
            onClick:                @onMessageClick
            onDragStart:            @onDragStart,

            tag
                href:              url
                className:         'wrapper'
                'data-message-id': message.get('id')
                onClick:           @onMessageClick
                onDoubleClick:     @onMessageDblClick
                ref:               'target'

                div className: 'markers-wrapper',
                    if MessageFlags.SEEN in flags
                        i className: 'fa fa-circle-thin'
                    else
                        i className: 'fa fa-circle'
                    if MessageFlags.FLAGGED in flags
                        i className: 'fa fa-star'

                div className: 'avatar-wrapper select-target',
                    input
                        ref:       'select'
                        className: 'select select-target',
                        type:      'checkbox',
                        checked:   @props.selected,
                        onChange:  @onSelect

                    if avatar?
                        img className: 'avatar', src: avatar
                    else
                        i className: 'avatar placeholder',
                            message.get('from')[0].name[0]

                div className: 'metas-wrapper',
                    div className: 'participants',
                        @getParticipants message
                    div className: 'subject',
                        message.get 'subject'
                    div className: 'date',
                        # TODO: use time-elements component here for the date
                        date
                    div className: 'extras',
                        if message.get 'hasAttachments'
                            i className: 'attachments fa fa-paperclip'
                        if  @props.displayConversations and
                            @props.conversationLengths > 1
                                div className: 'badge conversation-length',
                                    @props.conversationLengths
                    div className: 'preview',
                        text.substr(0, 1024)

    _doCheck: ->
        # please don't ask me why this **** react needs this
