mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-01-31 20:41:05 +08:00
fix(attachments): Don't show attachments with no name (that are alternative body formats)
This commit is contained in:
parent
0991cf693a
commit
54e651da0e
1 changed files with 2 additions and 1 deletions
|
@ -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]}/>
|
||||
|
||||
|
|
Loading…
Reference in a new issue