mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-24 12:04:57 +01:00
Do not compute link in getter
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
This commit is contained in:
parent
04065847dc
commit
fcc2afba08
@ -36,6 +36,7 @@ export class RoomViewModel extends ViewModel {
|
|||||||
}
|
}
|
||||||
this._clearUnreadTimout = null;
|
this._clearUnreadTimout = null;
|
||||||
this._closeUrl = this.urlCreator.urlUntilSegment("session");
|
this._closeUrl = this.urlCreator.urlUntilSegment("session");
|
||||||
|
this._detailsLink = this.urlCreator.urlForSegment("details");
|
||||||
}
|
}
|
||||||
|
|
||||||
async load() {
|
async load() {
|
||||||
@ -103,6 +104,7 @@ export class RoomViewModel extends ViewModel {
|
|||||||
get id() { return this._room.id; }
|
get id() { return this._room.id; }
|
||||||
get timelineViewModel() { return this._timelineVM; }
|
get timelineViewModel() { return this._timelineVM; }
|
||||||
get isEncrypted() { return this._room.isEncrypted; }
|
get isEncrypted() { return this._room.isEncrypted; }
|
||||||
|
get detailsLink() { return this._detailsLink; }
|
||||||
|
|
||||||
get error() {
|
get error() {
|
||||||
if (this._timelineError) {
|
if (this._timelineError) {
|
||||||
@ -284,10 +286,6 @@ export class RoomViewModel extends ViewModel {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
get detailsLink() {
|
|
||||||
return this.urlCreator.urlForSegment("details");
|
|
||||||
}
|
|
||||||
|
|
||||||
get composerViewModel() {
|
get composerViewModel() {
|
||||||
return this._composerVM;
|
return this._composerVM;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user