allow falling back to heroes name if we don't have one

This commit is contained in:
Bruno Windels 2020-08-21 18:12:11 +02:00
parent acec7c8f33
commit 2c14373b13

View file

@ -163,10 +163,7 @@ export class RoomSummary {
if (this._data.canonicalAlias) { if (this._data.canonicalAlias) {
return this._data.canonicalAlias; return this._data.canonicalAlias;
} }
if (Array.isArray(this._data.heroes) && this._data.heroes.length !== 0) { return null;
return this._data.heroes.join(", ");
}
return this._data.roomId;
} }
get heroes() { get heroes() {