From 2c14373b13c71ed04f0759e5aae6eeb47ad07dee Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Fri, 21 Aug 2020 18:12:11 +0200 Subject: [PATCH] allow falling back to heroes name if we don't have one --- src/matrix/room/RoomSummary.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/matrix/room/RoomSummary.js b/src/matrix/room/RoomSummary.js index 9e9c99dd..f9848158 100644 --- a/src/matrix/room/RoomSummary.js +++ b/src/matrix/room/RoomSummary.js @@ -163,10 +163,7 @@ export class RoomSummary { if (this._data.canonicalAlias) { return this._data.canonicalAlias; } - if (Array.isArray(this._data.heroes) && this._data.heroes.length !== 0) { - return this._data.heroes.join(", "); - } - return this._data.roomId; + return null; } get heroes() {