Rich message rendering #24

Merged
cadence merged 28 commits from rich-messages into princess 2020-11-07 10:46:48 +00:00
1 changed files with 6 additions and 1 deletions
Showing only changes of commit 017f30be65 - Show all commits

View File

@ -108,7 +108,12 @@ class HTMLMessage extends MatrixEvent {
static canRender(event) {
const content = event.content
return event.type === "m.room.message" && content.msgtype === "m.text" && content.format === "org.matrix.custom.html" && content.formatted_body
return (
event.type === "m.room.message"
&& (content.msgtype === "m.text" || content.msgtype === "m.notice")
&& content.format === "org.matrix.custom.html"
&& content.formatted_body
)
}
canGroup() {