mirror of
https://github.com/Foundry376/Mailspring.git
synced 2024-12-29 03:43:16 +08:00
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:
parent
43ea21e3bf
commit
ff61da26d7
1 changed files with 1 additions and 1 deletions
|
@ -118,7 +118,7 @@ class FocusedContactsStore extends NylasStore
|
||||||
_calculatePenalties: (contact, score) ->
|
_calculatePenalties: (contact, score) ->
|
||||||
penalties = 0
|
penalties = 0
|
||||||
email = contact.email.toLowerCase().trim()
|
email = contact.email.toLowerCase().trim()
|
||||||
myEmail = AccountStore.accountForId(@currentThread?.accountId)?.emailAddress
|
myEmail = AccountStore.accountForId(@_currentThread?.accountId)?.emailAddress
|
||||||
|
|
||||||
if email is myEmail
|
if email is myEmail
|
||||||
# The whole thing which will penalize to zero
|
# The whole thing which will penalize to zero
|
||||||
|
|
Loading…
Reference in a new issue