From c83ff1c6235e76c824860dbef2788b3a26d1cdfb Mon Sep 17 00:00:00 2001 From: Matthew Hodgson Date: Sat, 18 Jul 2015 19:06:36 +0100 Subject: [PATCH] hide events with no text equiv --- src/TextForEvent.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/TextForEvent.js b/src/TextForEvent.js index 05c1a50f..e302b647 100644 --- a/src/TextForEvent.js +++ b/src/TextForEvent.js @@ -32,7 +32,7 @@ function textForMemberEvent(ev) { if (!ev.target) console.warn("Join message has no target! -- " + ev.getContent().state_key); return targetName + " joined the room."; } - return 'Unrecognised join event'; + return ''; case 'leave': if (ev.getSender() === ev.getStateKey()) { return targetName + " left the room.";