From 6d0112055862e9ea77741700bcb3bf7fd2bbfa5b Mon Sep 17 00:00:00 2001 From: Ben Gotow Date: Tue, 12 Apr 2016 11:48:16 -0700 Subject: [PATCH] fix(account-store): Allow updateAccount in all windows --- src/flux/stores/account-store.coffee | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/flux/stores/account-store.coffee b/src/flux/stores/account-store.coffee index a4a10f36b..acd48f033 100644 --- a/src/flux/stores/account-store.coffee +++ b/src/flux/stores/account-store.coffee @@ -80,10 +80,9 @@ class AccountStore extends NylasStore # Inbound Events _onUpdateAccount: (id, updated) => - return unless NylasEnv.isMainWindow() idx = _.findIndex @_accounts, (a) -> a.id is id account = @_accounts[idx] - return if !account or _.isEqual(account, updated) + return unless account account = _.extend(account, updated) @_caches = {} @_accounts[idx] = account