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
This commit is contained in:
Evan Morikawa 2016-08-15 13:38:01 -07:00
parent 43ea21e3bf
commit ff61da26d7

View file

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