Fix parsing conflicting entities with emoji

This commit is contained in:
Eduard Kuzmenko 2021-05-15 21:03:51 +04:00
parent 21a39414c0
commit 2e617fc05d

View File

@ -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]);
}