mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-02-22 15:15:12 +08:00
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:
parent
334830d6e1
commit
4b217ea736
1 changed files with 2 additions and 0 deletions
|
@ -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: =>
|
||||
|
|
Loading…
Reference in a new issue