mirror of
https://github.com/status-im/status-desktop.git
synced 2025-02-22 11:38:57 +00:00
fix: ensure html is escaped in the notification window
This commit is contained in:
parent
6dabd361e1
commit
c10e0a8503
@ -348,7 +348,7 @@ QtObject:
|
||||
if msg.chatId != self.activeChannel.id:
|
||||
let channel = self.chats.getChannelById(msg.chatId)
|
||||
if not channel.muted:
|
||||
self.messageNotificationPushed(msg.chatId, msg.text, msg.messageType, channel.chatType.int, msg.timestamp, msg.identicon, msg.alias, msg.hasMention)
|
||||
self.messageNotificationPushed(msg.chatId, escape_html(msg.text), msg.messageType, channel.chatType.int, msg.timestamp, msg.identicon, msg.alias, msg.hasMention)
|
||||
else:
|
||||
discard self.status.chat.markMessagesSeen(msg.chatId, @[msg.id])
|
||||
self.newMessagePushed()
|
||||
|
@ -89,7 +89,7 @@ Rectangle {
|
||||
//% "Sticker"
|
||||
case Constants.stickerType: return qsTrId("sticker");
|
||||
//% "No messages"
|
||||
default: return lastMessage ? Emoji.parse(lastMessage, "26x26").replace(/\n|\r/g, ' ') : qsTrId("no-messages")
|
||||
default: return lastMessage ? Emoji.parse(Utils.filterXSS(lastMessage), "26x26").replace(/\n|\r/g, ' ') : qsTrId("no-messages")
|
||||
}
|
||||
}
|
||||
textFormat: Text.RichText
|
||||
|
Loading…
x
Reference in New Issue
Block a user