suppress null member rejoins again
reverts f5fe4b2433
should fix https://github.com/vector-im/riot-web/issues/3788
This commit is contained in:
parent
28e0a32d6c
commit
2b71123ddc
1 changed files with 2 additions and 2 deletions
|
@ -65,8 +65,8 @@ function textForMemberEvent(ev) {
|
||||||
} else if (!ev.getPrevContent().avatar_url && ev.getContent().avatar_url) {
|
} else if (!ev.getPrevContent().avatar_url && ev.getContent().avatar_url) {
|
||||||
return senderName + " set a profile picture";
|
return senderName + " set a profile picture";
|
||||||
} else {
|
} else {
|
||||||
// hacky hack for https://github.com/vector-im/vector-web/issues/2020
|
// suppress null rejoins
|
||||||
return senderName + " rejoined the room.";
|
return '';
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (!ev.target) console.warn("Join message has no target! -- " + ev.getContent().state_key);
|
if (!ev.target) console.warn("Join message has no target! -- " + ev.getContent().state_key);
|
||||||
|
|
Loading…
Reference in a new issue