Skip to content

Commit

Permalink
restore back windows flag emojis
Browse files Browse the repository at this point in the history
  • Loading branch information
mkhutornyi committed Dec 26, 2023
1 parent fb9b8f2 commit 6db1e50
Showing 1 changed file with 2 additions and 19 deletions.
21 changes: 2 additions & 19 deletions assets/emojis/index.ts
Original file line number Diff line number Diff line change
@@ -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';
Expand Down Expand Up @@ -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';

0 comments on commit 6db1e50

Please sign in to comment.