Mailspring/packages/client-sync/src
Juan Tejada 4d1628b914 [client-app] Don't start sync or delta connections without an identity
Summary:
This prevents the app from entering a restart loop when there's no
identity.

Specifically, when a user logs out of their identity, or when she resets the
email cache, or any other scenario that leaves the app without an
identity but with accounts added, the sync loop (and deltas) will start
without an Identity.

This will cause NylasAPIRequest to throw an error that
forces the user to close the app. When the app restarts, sync will start
again without an identity, and the user will be forced to close the app
again, and so on and so forth for the rest of eternity

Relevant error:
https://github.com/nylas/nylas-mail-all/blob/master/packages/client-app/src/flux/nylas-api-request.es6#L165-L174

Additionaly, this makes sure that after resetting the email cache, the sync
process starts when the identity becomes available

This solves T7989

Test Plan: manual

Reviewers: evan, spang, halla

Reviewed By: halla

Differential Revision: https://phab.nylas.com/D4212
2017-03-13 20:00:59 -07:00
..
local-api [client-sync] Refactor _search Observable 2017-03-09 14:26:06 -08:00
local-sync-dashboard [client-*] Rename packages folders and update readme 2017-02-16 13:31:37 -08:00
local-sync-worker [client-app] Don't start sync or delta connections without an identity 2017-03-13 20:00:59 -07:00
message-processor [client-sync] Fix queueMessageForProcessing 2017-03-10 17:39:35 -08:00
models [client-sync] Refactor file download IMAP pool use 2017-03-09 14:47:07 -08:00
shared [client-sync] Shim sequelize to timeout after 1 minute 2017-03-10 13:39:27 -08:00