Also format m.notice
All checks were successful
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing

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

View file

@ -108,7 +108,12 @@ class HTMLMessage extends MatrixEvent {
static canRender(event) { static canRender(event) {
const content = event.content 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() { canGroup() {