create room url in room tile

This commit is contained in:
Bruno Windels 2020-10-06 18:05:52 +02:00
parent 221b94adbf
commit b373a177ec

View File

@ -31,6 +31,7 @@ export class RoomTileViewModel extends ViewModel {
this._isOpen = false; this._isOpen = false;
this._wasUnreadWhenOpening = false; this._wasUnreadWhenOpening = false;
this._hidden = false; this._hidden = false;
this._url = this.urlRouter.urlForSegment("room", this._room.id);
} }
get hidden() { get hidden() {
@ -61,6 +62,10 @@ export class RoomTileViewModel extends ViewModel {
} }
} }
get url() {
return this._url;
}
compare(other) { compare(other) {
/* /*
put unread rooms first put unread rooms first