Support greentext in RoomDelegate subtitle
This commit is contained in:
parent
720eb78fe8
commit
b651be3c30
|
@ -75,9 +75,14 @@ HTileDelegate {
|
||||||
return Utils.processedEventText(ev)
|
return Utils.processedEventText(ev)
|
||||||
}
|
}
|
||||||
|
|
||||||
return Utils.coloredNameHtml(
|
let text = Utils.coloredNameHtml(
|
||||||
ev.sender_name, ev.sender_id
|
ev.sender_name, ev.sender_id
|
||||||
) + ": " + ev.inline_content
|
) + ": " + ev.inline_content
|
||||||
|
|
||||||
|
return text.replace(
|
||||||
|
/< *span +class=['"]?greentext['"]? *>(.+)<\/ *span *>/,
|
||||||
|
'<font color="' + theme.chat.message.greenText + '">$1</font>',
|
||||||
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
contextMenu: HMenu {
|
contextMenu: HMenu {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user