Browse Source

Fix parsing conflicting entities with emoji

master
Eduard Kuzmenko 4 years ago
parent
commit
2e617fc05d
  1. 5
      src/lib/richtextprocessor.ts

5
src/lib/richtextprocessor.ts

@ -104,7 +104,10 @@ const markdownEntities: {[markdown: string]: MessageEntity['_']} = {
'_-_': 'messageEntityUnderline' '_-_': 'messageEntityUnderline'
}; };
const passConflictingEntities: Set<MessageEntity['_']> = new Set(); const passConflictingEntities: Set<MessageEntity['_']> = new Set([
'messageEntityEmoji',
'messageEntityLinebreak'
]);
for(let i in markdownEntities) { for(let i in markdownEntities) {
passConflictingEntities.add(markdownEntities[i]); passConflictingEntities.add(markdownEntities[i]);
} }

Loading…
Cancel
Save