Fully qualify emojis instead of removing VS16. Fixes #58

This commit is contained in:
Tulir Asokan
2023-02-26 21:53:04 +02:00
parent 77b230f4d8
commit a0cc5ec9bc
4 changed files with 6 additions and 6 deletions

View File

@@ -206,8 +206,8 @@ func (portal *Portal) parseMatrixHTML(user *User, content *event.MessageEventCon
ctx := format.NewContext()
ctx.ReturnData[formatterContextUserKey] = user
ctx.ReturnData[formatterContextPortalKey] = portal
return variationselector.Remove(matrixHTMLParser.Parse(content.FormattedBody, ctx))
return variationselector.FullyQualify(matrixHTMLParser.Parse(content.FormattedBody, ctx))
} else {
return variationselector.Remove(escapeDiscordMarkdown(content.Body))
return variationselector.FullyQualify(escapeDiscordMarkdown(content.Body))
}
}