Also format m.notice
continuous-integration/drone/pr Build is passing Details
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Cadence Ember 2020-11-05 17:39:21 +13:00
parent a7165fe633
commit 017f30be65
Signed by: cadence
GPG Key ID: BC1C2C61CF521B17
1 changed files with 6 additions and 1 deletions

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() {