Port 85470ec872 to glitch emoji picker.

Fixes #541.
This commit is contained in:
David Yip 2018-06-15 12:10:45 -05:00 committed by ThibG
parent afceef74c2
commit 8cafeedc25

View File

@ -54,9 +54,13 @@ function addCustomToPool(custom, pool) {
index = {}; index = {};
} }
function search(value, { emojisToShowFilter, maxResults, include, exclude, custom = [] } = {}) { function search(value, { emojisToShowFilter, maxResults, include, exclude, custom } = {}) {
if (custom !== undefined) {
if (customEmojisList !== custom) if (customEmojisList !== custom)
addCustomToPool(custom, originalPool); addCustomToPool(custom, originalPool);
} else {
custom = [];
}
maxResults = maxResults || 75; maxResults = maxResults || 75;
include = include || []; include = include || [];