From fcc2afba08d0a69399188f5a4f89829389b175a5 Mon Sep 17 00:00:00 2001 From: RMidhunSuresh Date: Fri, 4 Jun 2021 17:58:44 +0530 Subject: [PATCH] Do not compute link in getter Signed-off-by: RMidhunSuresh --- src/domain/session/room/RoomViewModel.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/domain/session/room/RoomViewModel.js b/src/domain/session/room/RoomViewModel.js index 16d9b4c0..47bc0c7b 100644 --- a/src/domain/session/room/RoomViewModel.js +++ b/src/domain/session/room/RoomViewModel.js @@ -36,6 +36,7 @@ export class RoomViewModel extends ViewModel { } this._clearUnreadTimout = null; this._closeUrl = this.urlCreator.urlUntilSegment("session"); + this._detailsLink = this.urlCreator.urlForSegment("details"); } async load() { @@ -103,6 +104,7 @@ export class RoomViewModel extends ViewModel { get id() { return this._room.id; } get timelineViewModel() { return this._timelineVM; } get isEncrypted() { return this._room.isEncrypted; } + get detailsLink() { return this._detailsLink; } get error() { if (this._timelineError) { @@ -284,10 +286,6 @@ export class RoomViewModel extends ViewModel { } } - get detailsLink() { - return this.urlCreator.urlForSegment("details"); - } - get composerViewModel() { return this._composerVM; }