mirror of
https://github.com/Foundry376/Mailspring.git
synced 2024-11-11 01:54:40 +08:00
fix(accounts): Any account update triggered focus #2165
This commit is contained in:
parent
a83822d5ce
commit
b5ef44daaf
1 changed files with 1 additions and 1 deletions
|
@ -32,7 +32,7 @@ class AccountStore extends NylasStore
|
|||
oldAccountIds = _.pluck(@_accounts, 'id')
|
||||
@_loadAccounts()
|
||||
newAccountIds = _.pluck(@_accounts, 'id')
|
||||
newAccountIds = _.without(newAccountIds, oldAccountIds)
|
||||
newAccountIds = _.difference(newAccountIds, oldAccountIds)
|
||||
|
||||
if newAccountIds.length > 0
|
||||
Actions.focusDefaultMailboxPerspectiveForAccounts([newAccountIds[0]])
|
||||
|
|
Loading…
Reference in a new issue