From ff61da26d725f8d12af25b767744edc48b22abe1 Mon Sep 17 00:00:00 2001 From: Evan Morikawa Date: Mon, 15 Aug 2016 13:38:01 -0700 Subject: [PATCH] fix(sidebar): fix bug in sidebar scoring Not properly getting passed the account means that yourself was not properly downgraded in the sidebar participant score --- src/flux/stores/focused-contacts-store.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/flux/stores/focused-contacts-store.coffee b/src/flux/stores/focused-contacts-store.coffee index 06828253e..ece37634f 100644 --- a/src/flux/stores/focused-contacts-store.coffee +++ b/src/flux/stores/focused-contacts-store.coffee @@ -118,7 +118,7 @@ class FocusedContactsStore extends NylasStore _calculatePenalties: (contact, score) -> penalties = 0 email = contact.email.toLowerCase().trim() - myEmail = AccountStore.accountForId(@currentThread?.accountId)?.emailAddress + myEmail = AccountStore.accountForId(@_currentThread?.accountId)?.emailAddress if email is myEmail # The whole thing which will penalize to zero