fix(attachments): Don't show attachments with no name (that are alternative body formats)

This commit is contained in:
Ben Gotow 2015-03-06 12:28:04 -08:00
parent 0991cf693a
commit 54e651da0e

View file

@ -105,7 +105,8 @@ MessageItem = React.createClass
_attachmentComponents: ->
AttachmentComponent = @state.AttachmentComponent
attachments = _.filter @props.message.files, (f) -> not f.contentId?
attachments = _.filter @props.message.files, (f) ->
not f.contentId? and f.filename.length > 0
attachments.map (file) =>
<AttachmentComponent file={file} key={file.id} download={@state.downloads[file.id]}/>