Carbon/src/js/events/unknown.js

20 lines
326 B
JavaScript
Raw Normal View History

2020-10-29 10:31:08 +00:00
const {MatrixEvent} = require("./event")
const {ejs} = require("../basic")
2020-10-29 10:31:08 +00:00
class UnknownEvent extends MatrixEvent {
static canRender() {
return true
}
2020-10-29 10:31:08 +00:00
render() {
this.clearChildren()
this.child(
ejs("i").text(`Unknown event of type ${this.data.type}`)
)
2020-10-29 10:31:08 +00:00
super.render()
}
}
2020-10-26 08:10:02 +00:00
module.exports = [UnknownEvent]
2020-10-29 10:31:08 +00:00