Carbon/src/js/events/encrypted.js

19 lines
385 B
JavaScript
Raw Normal View History

const {GroupableEvent} = require("./event")
const {ejs} = require("../basic")
2020-10-26 08:10:02 +00:00
class EncryptedMessage extends GroupableEvent {
2020-10-26 08:10:02 +00:00
render() {
this.clearChildren()
this.child(
ejs("i").text("Carbon cannot render encrypted messages yet")
)
2020-10-26 08:10:02 +00:00
super.render()
}
static canRender(eventData) {
return eventData.type === "m.room.encrypted"
2020-10-26 08:10:02 +00:00
}
}
module.exports = [EncryptedMessage]