From f5fe4b24336a8245b5a08050fefe13b9999d92fb Mon Sep 17 00:00:00 2001 From: Richard van der Hoff Date: Fri, 2 Sep 2016 16:54:27 +0100 Subject: [PATCH] Show something when we see a no-op join event As a very quick hack to work around https://github.com/vector-im/vector-web/issues/2020, don't supress no-op joins --- src/TextForEvent.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/TextForEvent.js b/src/TextForEvent.js index 93f5f7c4e2..f32d1a7132 100644 --- a/src/TextForEvent.js +++ b/src/TextForEvent.js @@ -62,6 +62,9 @@ function textForMemberEvent(ev) { return senderName + " changed their profile picture"; } else if (!ev.getPrevContent().avatar_url && ev.getContent().avatar_url) { return senderName + " set a profile picture"; + } else { + // hacky hack for https://github.com/vector-im/vector-web/issues/2020 + return senderName + " rejoined the room."; } } else { if (!ev.target) console.warn("Join message has no target! -- " + ev.getContent().state_key);