Telegram Web K with changes to work inside I2P
https://web.telegram.i2p/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
536 B
21 lines
536 B
3 years ago
|
import Emoji from "../../config/emoji";
|
||
|
import { encodeEmoji } from "../../vendor/emoji";
|
||
|
|
||
|
export default function getEmojiUnified(emojiCode: string) {
|
||
|
let unified = encodeEmoji(emojiCode).replace(/-?fe0f/g, '');
|
||
|
|
||
|
/* if(unified === '1f441-200d-1f5e8') {
|
||
|
//unified = '1f441-fe0f-200d-1f5e8-fe0f';
|
||
|
unified = '1f441-fe0f-200d-1f5e8';
|
||
|
} */
|
||
|
|
||
|
if(!Emoji.hasOwnProperty(unified)
|
||
|
// && !emojiData.hasOwnProperty(unified.replace(/-?fe0f$/, ''))
|
||
|
) {
|
||
|
//console.error('lol', unified);
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
return unified;
|
||
|
}
|