mirror of
https://github.com/Foundry376/Mailspring.git
synced 2024-09-22 16:26:08 +08:00
4d1628b914
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 |
||
---|---|---|
.. | ||
local-api | ||
local-sync-dashboard | ||
local-sync-worker | ||
message-processor | ||
models | ||
shared |