From d5f53da43f9ba6cb1c6a1fb8c2329f213a488b28 Mon Sep 17 00:00:00 2001 From: Joffrey JAFFEUX Date: Fri, 21 Jul 2017 19:46:40 +0200 Subject: [PATCH] FIX: filtered emojis now correctly include custom emojis --- app/assets/javascripts/discourse/components/emoji-picker.js.es6 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/assets/javascripts/discourse/components/emoji-picker.js.es6 b/app/assets/javascripts/discourse/components/emoji-picker.js.es6 index cc29852ac49..341767818d4 100644 --- a/app/assets/javascripts/discourse/components/emoji-picker.js.es6 +++ b/app/assets/javascripts/discourse/components/emoji-picker.js.es6 @@ -188,7 +188,7 @@ export default Ember.Component.extend({ $list.show(); } else { const regexp = new RegExp(this.get("filter"), "g"); - const filteredCodes = _.filter(emojis, code => regexp.test(code)).slice(0, 30); + const filteredCodes = _.filter(emojis.concat(_.keys(extendedEmojiList())), code => regexp.test(code)).slice(0, 30); $results.empty().html( _.map(filteredCodes, (code) => { const hasDiversity = isSkinTonableEmoji(code);