Revert nullish coalescing

This commit is contained in:
Richard Lewis 2021-07-07 15:17:53 +01:00
parent 250054059c
commit 8144e66d00

View file

@ -36,7 +36,7 @@ export class RoomMemberTile extends SimpleTile {
if (!content.displayname) { if (!content.displayname) {
return `${stateKey} removed their name (${prevContent.displayname})`; return `${stateKey} removed their name (${prevContent.displayname})`;
} }
return `${prevContent.displayname ?? stateKey} changed their name to ${content.displayname}`; return `${prevContent.displayname ? prevContent.displayname : stateKey} changed their name to ${content.displayname}`;
} }
} else if (membership === "join") { } else if (membership === "join") {
return `${targetName} joined the room`; return `${targetName} joined the room`;