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

This commit is contained in:
Ben Gotow 2016-05-10 10:53:59 -07:00
parent eab8cb9085
commit 1b0e933977

View file

@ -32,7 +32,7 @@ class AccountStore extends NylasStore
oldAccountIds = _.pluck(@_accounts, 'id') oldAccountIds = _.pluck(@_accounts, 'id')
@_loadAccounts() @_loadAccounts()
newAccountIds = _.pluck(@_accounts, 'id') newAccountIds = _.pluck(@_accounts, 'id')
newAccountIds = _.without(newAccountIds, oldAccountIds) newAccountIds = _.difference(newAccountIds, oldAccountIds)
if newAccountIds.length > 0 if newAccountIds.length > 0
Actions.focusDefaultMailboxPerspectiveForAccounts([newAccountIds[0]]) Actions.focusDefaultMailboxPerspectiveForAccounts([newAccountIds[0]])