Support greentext in RoomDelegate subtitle

This commit is contained in:
miruka 2019-08-30 12:07:50 -04:00
parent 720eb78fe8
commit b651be3c30

View File

@ -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 {