diff --git a/src/utils/index.js b/src/utils/index.js index 6fd684b..4c436ec 100644 --- a/src/utils/index.js +++ b/src/utils/index.js @@ -15,10 +15,21 @@ function unifiedToNative(unified) { } function sanitize(emoji) { - var { name, short_names, skin_tone, skin_variations, emoticons, unified } = emoji, + var { name, short_names, skin_tone, skin_variations, emoticons, unified, custom, imageUrl } = emoji, id = short_names[0], colons = `:${id}:` + if (custom) { + return { + id, + name, + colons, + emoticons, + custom, + imageUrl + } + } + if (skin_tone) { colons += `:skin-tone-${skin_tone}:` }