mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-10-29 23:46:13 +08:00
[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:
parent
d24fc9a235
commit
a8fe22551f
1 changed files with 2 additions and 0 deletions
|
|
@ -267,6 +267,8 @@ class AccountStore extends NylasStore {
|
||||||
const account = this._accounts[existingIdx]
|
const account = this._accounts[existingIdx]
|
||||||
account.syncState = Account.SYNC_STATE_RUNNING
|
account.syncState = Account.SYNC_STATE_RUNNING
|
||||||
account.fromJSON(json)
|
account.fromJSON(json)
|
||||||
|
// Restart the connection in case account credentials have changed
|
||||||
|
Actions.retryDeltaConnection()
|
||||||
}
|
}
|
||||||
|
|
||||||
this._save()
|
this._save()
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue