From a8fe22551fa89993139ffeaa618bd77415740547 Mon Sep 17 00:00:00 2001 From: Juan Tejada Date: Thu, 9 Mar 2017 15:17:28 -0800 Subject: [PATCH] [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 --- packages/client-app/src/flux/stores/account-store.es6 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/client-app/src/flux/stores/account-store.es6 b/packages/client-app/src/flux/stores/account-store.es6 index 15d15f493..8f8a4e06c 100644 --- a/packages/client-app/src/flux/stores/account-store.es6 +++ b/packages/client-app/src/flux/stores/account-store.es6 @@ -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()