From b8dd2452dbef394cfa0603719d6529fb866c7131 Mon Sep 17 00:00:00 2001 From: David Baker Date: Mon, 5 Oct 2015 16:44:50 +0100 Subject: [PATCH] Display correct message for when an invited but not joined user is kicked. --- src/TextForEvent.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/TextForEvent.js b/src/TextForEvent.js index 3d6ba2cf64..71354325bd 100644 --- a/src/TextForEvent.js +++ b/src/TextForEvent.js @@ -43,6 +43,9 @@ function textForMemberEvent(ev) { else if (ev.getPrevContent().membership === "join") { return senderName + " kicked " + targetName + "." + reason; } + else if (ev.getPrevContent().membership === "invite") { + return senderName + " withdrew " + targetName + "'s invitation." + reason; + } else { return targetName + " left the room."; }