mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-01-01 13:14:16 +08:00
fix(download): ignore non message deltas instead of erroring
This commit is contained in:
parent
2c1c1eb0bd
commit
ce7d731816
1 changed files with 1 additions and 0 deletions
|
@ -142,6 +142,7 @@ FileDownloadStore = Reflux.createStore
|
||||||
|
|
||||||
_newMailReceived: (incoming) ->
|
_newMailReceived: (incoming) ->
|
||||||
if NylasEnv.config.get('core.attachments.downloadPolicy') is 'on-receive'
|
if NylasEnv.config.get('core.attachments.downloadPolicy') is 'on-receive'
|
||||||
|
return unless incoming['message']
|
||||||
for message in incoming['message']
|
for message in incoming['message']
|
||||||
for file in message.files
|
for file in message.files
|
||||||
@_fetch(file)
|
@_fetch(file)
|
||||||
|
|
Loading…
Reference in a new issue