mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 03:25:12 +01:00
allow falling back to heroes name if we don't have one
This commit is contained in:
parent
acec7c8f33
commit
2c14373b13
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user