Revert nullish coalescing
This commit is contained in:
parent
250054059c
commit
8144e66d00
1 changed files with 1 additions and 1 deletions
|
@ -36,7 +36,7 @@ export class RoomMemberTile extends SimpleTile {
|
|||
if (!content.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") {
|
||||
return `${targetName} joined the room`;
|
||||
|
|
Reference in a new issue