Mailspring/packages
Juan Tejada 600be97324 [local-sync] Don't crash app when reporting error and id not available
Summary:
Our sentry reporter tries to fetch the nylas identity from the database,
and access properties on it. However, if you are in a state where there
is no identity available (like having logged out, or just starting the
app), and encoutnered an error that would be reported to sentry, we
would throw an error while reporting and that would crash the app

Also, fix lint errors and some really janky code

This fixes T7810

Test Plan: manual

Reviewers: halla, spang, evan

Reviewed By: spang, evan

Maniphest Tasks: T7810

Differential Revision: https://phab.nylas.com/D3867
2017-02-09 09:27:36 -08:00
..
isomorphic-core [local-sync] Fix Mailbox does not exist error during sync 2017-02-08 17:23:17 -08:00
local-private [local-sync] Don't crash app when reporting error and id not available 2017-02-09 09:27:36 -08:00
local-sync [local-sync] Prefer promises over success option for api requests 2017-02-09 09:19:19 -08:00