Skip to content

Commit

Permalink
Merge pull request #33603 from mkhutornyi/fix-33593
Browse files Browse the repository at this point in the history
restore back windows flag emojis
  • Loading branch information
mountiny authored Dec 26, 2023
2 parents 91adf38 + 6db1e50 commit 92501dc
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 92501dc

Please sign in to comment.