mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-02-25 08:35:16 +08:00
fix(contact): only limit length if too long
This commit is contained in:
parent
36abf5b608
commit
1739b3fbb3
1 changed files with 2 additions and 2 deletions
|
@ -83,8 +83,8 @@ class ContactStore extends NylasStore
|
||||||
return Promise.each extensions, (ext) =>
|
return Promise.each extensions, (ext) =>
|
||||||
return ext.findAdditionalContacts(search, results).then (contacts) =>
|
return ext.findAdditionalContacts(search, results).then (contacts) =>
|
||||||
results = contacts
|
results = contacts
|
||||||
.then () =>
|
.then =>
|
||||||
results.length = limit
|
if (results.length > limit) then results.length = limit
|
||||||
return Promise.resolve(results)
|
return Promise.resolve(results)
|
||||||
|
|
||||||
isValidContact: (contact) =>
|
isValidContact: (contact) =>
|
||||||
|
|
Loading…
Reference in a new issue