suppress null member rejoins again

reverts f5fe4b2433
should fix https://github.com/vector-im/riot-web/issues/3788
This commit is contained in:
Matthew Hodgson 2017-05-06 01:45:28 +01:00
parent 28e0a32d6c
commit 2b71123ddc

View file

@ -65,8 +65,8 @@ function textForMemberEvent(ev) {
} 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.";
// suppress null rejoins
return '';
}
} else {
if (!ev.target) console.warn("Join message has no target! -- " + ev.getContent().state_key);