From 8555fd5f186934caebb66e8f929d67dd72ec9b68 Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Mon, 14 Sep 2020 15:44:18 +0200 Subject: [PATCH] a little extra caution --- src/domain/session/room/timeline/tiles/RoomNameTile.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/domain/session/room/timeline/tiles/RoomNameTile.js b/src/domain/session/room/timeline/tiles/RoomNameTile.js index a7a785d0..d5694a62 100644 --- a/src/domain/session/room/timeline/tiles/RoomNameTile.js +++ b/src/domain/session/room/timeline/tiles/RoomNameTile.js @@ -24,6 +24,6 @@ export class RoomNameTile extends SimpleTile { get announcement() { const content = this._entry.content; - return `${this._entry.displayName || this._entry.sender} named the room "${content.name}"` + return `${this._entry.displayName || this._entry.sender} named the room "${content?.name}"` } }