From 6db1e50c3d6b4e5982843258306981d9bb576c8a Mon Sep 17 00:00:00 2001 From: mkhutornyi Date: Tue, 26 Dec 2023 10:45:23 -0500 Subject: [PATCH] restore back windows flag emojis --- assets/emojis/index.ts | 21 ++------------------- 1 file changed, 2 insertions(+), 19 deletions(-) diff --git a/assets/emojis/index.ts b/assets/emojis/index.ts index 3c2849b41e0a..bc62adc4b252 100644 --- a/assets/emojis/index.ts +++ b/assets/emojis/index.ts @@ -1,5 +1,3 @@ -import getOperatingSystem from '@libs/getOperatingSystem'; -import CONST from '@src/CONST'; import emojis from './common'; import enEmojis from './en'; import esEmojis from './es'; @@ -33,21 +31,6 @@ const localeEmojis = { es: esEmojis, } as const; -// On windows, flag emojis are not supported -const emojisForOperatingSystem = - getOperatingSystem() === CONST.OS.WINDOWS - ? emojis.slice( - 0, - emojis.findIndex((emoji) => { - if (!('header' in emoji)) { - return; - } - - return emoji.header && emoji.code === 'flags'; - }), - ) - : emojis; - -export default emojisForOperatingSystem; -export {emojiNameTable, emojiCodeTableWithSkinTones, localeEmojis, emojisForOperatingSystem}; +export default emojis; +export {emojiNameTable, emojiCodeTableWithSkinTones, localeEmojis}; export {skinTones, categoryFrequentlyUsed} from './common';