[client-app] Make sure we retry delta connection when reauthing account

Summary: See title

Test Plan: manual

Reviewers: halla, evan

Reviewed By: halla, evan

Differential Revision: https://phab.nylas.com/D4176
This commit is contained in:
Juan Tejada 2017-03-09 15:17:28 -08:00
parent d24fc9a235
commit a8fe22551f

View file

@ -267,6 +267,8 @@ class AccountStore extends NylasStore {
const account = this._accounts[existingIdx]
account.syncState = Account.SYNC_STATE_RUNNING
account.fromJSON(json)
// Restart the connection in case account credentials have changed
Actions.retryDeltaConnection()
}
this._save()