fix(memory): don't return Promise to debounce in ContactStore

Prevents a memory leak where it holds onto a stale references of the
contactCache
This commit is contained in:
Evan Morikawa 2015-10-22 14:10:11 -07:00
parent 334830d6e1
commit 4b217ea736

View file

@ -177,6 +177,8 @@ class ContactStore extends NylasStore
@trigger()
.catch (err) =>
console.warn("Request for Contacts failed. #{err}")
return true
_refreshCache: _.debounce(ContactStore::__refreshCache, 100)
_sortContactsCacheWithRankings: =>