allow falling back to heroes name if we don't have one
This commit is contained in:
parent
acec7c8f33
commit
2c14373b13
1 changed files with 1 additions and 4 deletions
|
@ -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() {
|
||||
|
|
Reference in a new issue