Fix country picker emoji
This commit is contained in:
parent
a96272ab8c
commit
d2d140598a
@ -410,13 +410,14 @@ namespace RichTextProcessor {
|
||||
noLinebreaks: true,
|
||||
noCommands: true,
|
||||
wrappingDraft: true,
|
||||
//mustWrapEmoji: boolean,
|
||||
fromBot: boolean,
|
||||
noTextFormat: true,
|
||||
passEntities: Partial<{
|
||||
[_ in MessageEntity['_']]: boolean
|
||||
}>,
|
||||
|
||||
contextHashtag?: string
|
||||
contextHashtag?: string,
|
||||
}> = {}) {
|
||||
if(!text) {
|
||||
return '';
|
||||
@ -540,7 +541,9 @@ namespace RichTextProcessor {
|
||||
// } else {
|
||||
insertPart(entity, `<img src="assets/img/emoji/${entity.unicode}.png" alt="`, `" class="emoji">`);
|
||||
// }
|
||||
}
|
||||
}/* else if(options.mustWrapEmoji) {
|
||||
insertPart(entity, '<span class="emoji">', '</span>');
|
||||
} */
|
||||
/* if(!emojiSupported) {
|
||||
insertPart(entity, `<img src="assets/img/emoji/${entity.unicode}.png" alt="`, `" class="emoji">`);
|
||||
} */
|
||||
|
@ -94,13 +94,16 @@ let onFirstMount = () => {
|
||||
const liArr: Array<HTMLLIElement> = [];
|
||||
c.phoneCode.split(' and ').forEach((phoneCode: string) => {
|
||||
const li = document.createElement('li');
|
||||
const spanEmoji = document.createElement('span');
|
||||
|
||||
const kek = RichTextProcessor.wrapRichText(emoji);
|
||||
|
||||
li.appendChild(spanEmoji);
|
||||
spanEmoji.outerHTML = kek;
|
||||
|
||||
let wrapped = RichTextProcessor.wrapEmojiText(emoji);
|
||||
if(RichTextProcessor.emojiSupported) {
|
||||
const spanEmoji = document.createElement('span');
|
||||
spanEmoji.innerHTML = wrapped;
|
||||
li.append(spanEmoji);
|
||||
} else {
|
||||
li.innerHTML = wrapped;
|
||||
}
|
||||
|
||||
li.append(c.name);
|
||||
|
||||
const span = document.createElement('span');
|
||||
|
Loading…
x
Reference in New Issue
Block a user