diff --git a/internal_packages/composer-emoji/lib/emoji-button-popover.jsx b/internal_packages/composer-emoji/lib/emoji-button-popover.jsx index 6ca9458c4..e88195279 100644 --- a/internal_packages/composer-emoji/lib/emoji-button-popover.jsx +++ b/internal_packages/composer-emoji/lib/emoji-button-popover.jsx @@ -269,7 +269,7 @@ class EmojiButtonPopover extends React.Component { ctx.fillStyle = 'black'; if (this.state.categorizedEmoji[category].length === 0) return; this.state.categorizedEmoji[category].forEach((emojiName, j) => { - if (missingEmojiList.indexOf(emojiName) === -1) { + if (process.platform === "darwin" && missingEmojiList.indexOf(emojiName) === -1) { const emojiChar = emoji.get(emojiName); ctx.fillText(emojiChar, position.x, position.y); } else { diff --git a/internal_packages/composer-emoji/lib/emoji-composer-extension.jsx b/internal_packages/composer-emoji/lib/emoji-composer-extension.jsx index 31c8b4124..febf61c02 100644 --- a/internal_packages/composer-emoji/lib/emoji-composer-extension.jsx +++ b/internal_packages/composer-emoji/lib/emoji-composer-extension.jsx @@ -205,7 +205,7 @@ class EmojiComposerExtension extends ComposerExtension { } } const emojiChar = emoji.get(emojiName); - if (missingEmojiList.indexOf(emojiName) !== -1) { + if (process.platform === "darwin" && missingEmojiList.indexOf(emojiName) !== -1) { const html = ` { const emojiClass = emojiIndex === i ? "btn btn-icon emoji-option" : "btn btn-icon"; let emojiChar = emoji.get(emojiOption); - if (missingEmojiList.indexOf(emojiOption) !== -1) { + if (process.platform === "darwin" && missingEmojiList.indexOf(emojiOption) !== -1) { emojiChar = (