2020-10-29 10:31:08 +00:00
|
|
|
const {MatrixEvent} = require("./event")
|
2020-11-05 03:44:22 +00:00
|
|
|
const {ejs} = require("../basic")
|
2020-10-29 10:31:08 +00:00
|
|
|
|
|
|
|
class UnknownEvent extends MatrixEvent {
|
|
|
|
static canRender() {
|
|
|
|
return true
|
|
|
|
}
|
2020-11-05 03:44:22 +00:00
|
|
|
|
2020-10-29 10:31:08 +00:00
|
|
|
render() {
|
2020-11-05 03:44:22 +00:00
|
|
|
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-11-05 03:44:22 +00:00
|
|
|
|
2020-10-26 08:10:02 +00:00
|
|
|
module.exports = [UnknownEvent]
|
2020-10-29 10:31:08 +00:00
|
|
|
|