diff --git a/src/domain/session/leftpanel/RoomTileViewModel.js b/src/domain/session/leftpanel/RoomTileViewModel.js index 86f832c4..2b25294b 100644 --- a/src/domain/session/leftpanel/RoomTileViewModel.js +++ b/src/domain/session/leftpanel/RoomTileViewModel.js @@ -31,6 +31,7 @@ export class RoomTileViewModel extends ViewModel { this._isOpen = false; this._wasUnreadWhenOpening = false; this._hidden = false; + this._url = this.urlRouter.urlForSegment("room", this._room.id); } get hidden() { @@ -61,6 +62,10 @@ export class RoomTileViewModel extends ViewModel { } } + get url() { + return this._url; + } + compare(other) { /* put unread rooms first