mirror of
https://github.com/element-hq/element-web
synced 2024-11-25 02:35:48 +03:00
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
This commit is contained in:
parent
b9d98f918e
commit
fd0ed4a406
1 changed files with 3 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue