mirror of https://github.com/vector-im/riot-web
Just return nothing for unknown events
parent
00c45e48a9
commit
b53640f892
|
@ -61,7 +61,7 @@ var handlers = {
|
|||
module.exports = {
|
||||
textForEvent(ev) {
|
||||
var hdlr = handlers[ev.getType()];
|
||||
if (!hdlr) return "Unknown entry event";
|
||||
if (!hdlr) return "";
|
||||
return hdlr(ev);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue