Browse Source

Also format m.notice

pull/24/head
Cadence Ember 2 years ago
parent
commit
017f30be65
Signed by: cadence
GPG Key ID: BC1C2C61CF521B17
  1. 7
      src/js/events/message.js

7
src/js/events/message.js

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

Loading…
Cancel
Save