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:
parent
7d58ac9983
commit
1c52dd3b8e
|
@ -62,7 +62,7 @@ Rectangle {
|
||||||
|
|
||||||
StyledText {
|
StyledText {
|
||||||
id: replyText
|
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
|
anchors.fill: parent
|
||||||
elide: Text.ElideRight
|
elide: Text.ElideRight
|
||||||
font.pixelSize: 13
|
font.pixelSize: 13
|
||||||
|
|
Loading…
Reference in New Issue