fix(download): ignore non message deltas instead of erroring

This commit is contained in:
Evan Morikawa 2016-02-25 18:58:44 -08:00
parent 2c1c1eb0bd
commit ce7d731816

View file

@ -142,6 +142,7 @@ FileDownloadStore = Reflux.createStore
_newMailReceived: (incoming) ->
if NylasEnv.config.get('core.attachments.downloadPolicy') is 'on-receive'
return unless incoming['message']
for message in incoming['message']
for file in message.files
@_fetch(file)