forked from mystiq/hydrogen-web
make pass-through props smaller
This commit is contained in:
parent
a91a584201
commit
16f275ca34
1 changed files with 5 additions and 19 deletions
|
@ -34,10 +34,6 @@ export class RoomViewModel extends ViewModel {
|
||||||
this._closeUrl = this.urlCreator.urlUntilSegment("session");
|
this._closeUrl = this.urlCreator.urlUntilSegment("session");
|
||||||
}
|
}
|
||||||
|
|
||||||
get closeUrl() {
|
|
||||||
return this._closeUrl;
|
|
||||||
}
|
|
||||||
|
|
||||||
async load() {
|
async load() {
|
||||||
this._room.on("change", this._onRoomChange);
|
this._room.on("change", this._onRoomChange);
|
||||||
try {
|
try {
|
||||||
|
@ -92,21 +88,11 @@ export class RoomViewModel extends ViewModel {
|
||||||
this.emitChange("name");
|
this.emitChange("name");
|
||||||
}
|
}
|
||||||
|
|
||||||
get name() {
|
get closeUrl() { return this._closeUrl; }
|
||||||
return this._room.name || this.i18n`Empty Room`;
|
get name() { return this._room.name || this.i18n`Empty Room`; }
|
||||||
}
|
get id() { return this._room.id; }
|
||||||
|
get timelineViewModel() { return this._timelineVM; }
|
||||||
get id() {
|
get isEncrypted() { return this._room.isEncrypted; }
|
||||||
return this._room.id;
|
|
||||||
}
|
|
||||||
|
|
||||||
get timelineViewModel() {
|
|
||||||
return this._timelineVM;
|
|
||||||
}
|
|
||||||
|
|
||||||
get isEncrypted() {
|
|
||||||
return this._room.isEncrypted;
|
|
||||||
}
|
|
||||||
|
|
||||||
get error() {
|
get error() {
|
||||||
if (this._timelineError) {
|
if (this._timelineError) {
|
||||||
|
|
Loading…
Reference in a new issue