fix(chat): fix removal of emojis in reply preview

Emojis are parsed in a message to transform from special emojis characters
in qml image links. After this transformation, an XSS filter was applied
that "fixes" all the image URLs introduced by the previous stage.
Reversing the order of these opperations fixed the issue.

fixes #4899
This commit is contained in:
Stefan D 2022-03-23 09:48:02 +02:00 committed by Iuri Matias
parent 7d58ac9983
commit 1c52dd3b8e
1 changed files with 1 additions and 1 deletions

View File

@ -62,7 +62,7 @@ Rectangle {
StyledText {
id: replyText
text: Utils.getMessageWithStyle(Utils.linkifyAndXSS(StatusQUtils.Emoji.parse(message)), false)
text: Utils.getMessageWithStyle(StatusQUtils.Emoji.parse(Utils.linkifyAndXSS(message)), false)
anchors.fill: parent
elide: Text.ElideRight
font.pixelSize: 13