Fix parsing conflicting entities with emoji
This commit is contained in:
parent
21a39414c0
commit
2e617fc05d
@ -104,7 +104,10 @@ const markdownEntities: {[markdown: string]: MessageEntity['_']} = {
|
||||
'_-_': 'messageEntityUnderline'
|
||||
};
|
||||
|
||||
const passConflictingEntities: Set<MessageEntity['_']> = new Set();
|
||||
const passConflictingEntities: Set<MessageEntity['_']> = new Set([
|
||||
'messageEntityEmoji',
|
||||
'messageEntityLinebreak'
|
||||
]);
|
||||
for(let i in markdownEntities) {
|
||||
passConflictingEntities.add(markdownEntities[i]);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user