Port bf508b9f74 to glitch emoji picker.

Fixes #541.
lolsob-rspec
David Yip 2018-06-15 12:10:45 -05:00 committed by ThibG
parent 6e961f0731
commit c3202b66f2
1 changed files with 7 additions and 3 deletions

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 (customEmojisList !== custom) if (custom !== undefined) {
addCustomToPool(custom, originalPool); if (customEmojisList !== custom)
addCustomToPool(custom, originalPool);
} else {
custom = [];
}
maxResults = maxResults || 75; maxResults = maxResults || 75;
include = include || []; include = include || [];