mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-09-11 15:14:31 +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: ->
|
_attachmentComponents: ->
|
||||||
AttachmentComponent = @state.AttachmentComponent
|
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) =>
|
attachments.map (file) =>
|
||||||
<AttachmentComponent file={file} key={file.id} download={@state.downloads[file.id]}/>
|
<AttachmentComponent file={file} key={file.id} download={@state.downloads[file.id]}/>
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue