From 8144e66d006ff41a1c67c1021c089af1efd3ff37 Mon Sep 17 00:00:00 2001 From: Richard Lewis Date: Wed, 7 Jul 2021 15:17:53 +0100 Subject: [PATCH] Revert nullish coalescing --- src/domain/session/room/timeline/tiles/RoomMemberTile.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/domain/session/room/timeline/tiles/RoomMemberTile.js b/src/domain/session/room/timeline/tiles/RoomMemberTile.js index ce41f031..1c6de030 100644 --- a/src/domain/session/room/timeline/tiles/RoomMemberTile.js +++ b/src/domain/session/room/timeline/tiles/RoomMemberTile.js @@ -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`;