fix(accounts): Any account update triggered focus #2165

This commit is contained in:
Ben Gotow 2016-05-10 10:53:59 -07:00
parent a83822d5ce
commit b5ef44daaf

View file

@ -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]])