don't break the layout with unrecognised join events
This commit is contained in:
@@ -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.";
|
||||
|
||||
Reference in New Issue
Block a user