From 5a12a4a1a3a740f7d2fa053c16f674ebde145ba5 Mon Sep 17 00:00:00 2001
From: Matthew Hodgson <matthew@matrix.org>
Date: Sat, 18 Jul 2015 02:17:10 +0100
Subject: [PATCH] don't break the layout with unrecognised join events

---
 src/TextForEvent.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/TextForEvent.js b/src/TextForEvent.js
index e302b647..05c1a50f 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 '';
+            return 'Unrecognised join event';
         case 'leave':
             if (ev.getSender() === ev.getStateKey()) {
                 return targetName + " left the room.";