mirror of
https://github.com/element-hq/element-web
synced 2024-11-26 03:05:51 +03:00
don't break the layout with unrecognised join events
This commit is contained in:
parent
aa4f9abd5c
commit
5a12a4a1a3
1 changed files with 1 additions and 1 deletions
|
@ -32,7 +32,7 @@ function textForMemberEvent(ev) {
|
|||
if (!ev.target) console.warn("Join message has no target! -- " + ev.getContent().state_key);
|
||||
return targetName + " joined the room.";
|
||||
}
|
||||
return '';
|
||||
return 'Unrecognised join event';
|
||||
case 'leave':
|
||||
if (ev.getSender() === ev.getStateKey()) {
|
||||
return targetName + " left the room.";
|
||||
|
|
Loading…
Reference in a new issue