mirror of
https://github.com/SchildiChat/element-web.git
synced 2024-10-01 01:26:12 -04:00
Just return nothing for unknown events
This commit is contained in:
parent
00c45e48a9
commit
b53640f892
@ -61,7 +61,7 @@ var handlers = {
|
|||||||
module.exports = {
|
module.exports = {
|
||||||
textForEvent(ev) {
|
textForEvent(ev) {
|
||||||
var hdlr = handlers[ev.getType()];
|
var hdlr = handlers[ev.getType()];
|
||||||
if (!hdlr) return "Unknown entry event";
|
if (!hdlr) return "";
|
||||||
return hdlr(ev);
|
return hdlr(ev);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user