Browse Source

Port 85470ec872 to glitch emoji picker.

Fixes #541.
closed-social-glitch-2
David Yip 6 years ago
committed by ThibG
parent
commit
8cafeedc25
1 changed files with 7 additions and 3 deletions
  1. +7
    -3
      app/javascript/flavours/glitch/util/emoji/emoji_mart_search_light.js

+ 7
- 3
app/javascript/flavours/glitch/util/emoji/emoji_mart_search_light.js View File

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

Loading…
Cancel
Save