From f589bf6b2e0c45a6eeccccfce7afb78e360b55e0 Mon Sep 17 00:00:00 2001 From: Matthew Hodgson Date: Wed, 16 Mar 2016 01:16:15 +0000 Subject: [PATCH] reject invites explicitly - fixes https://github.com/vector-im/vector-web/issues/1133 --- src/TextForEvent.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/TextForEvent.js b/src/TextForEvent.js index 5c733d98e7..10e529dfa7 100644 --- a/src/TextForEvent.js +++ b/src/TextForEvent.js @@ -78,6 +78,9 @@ function textForMemberEvent(ev) { if (ConferenceHandler && ConferenceHandler.isConferenceUser(ev.getStateKey())) { return "VoIP conference finished"; } + else if (ev.getPrevContent().membership === "invite") { + return targetName + " rejected the invitation."; + } else { return targetName + " left the room."; }