diff --git a/src/domain/session/room/RoomViewModel.js b/src/domain/session/room/RoomViewModel.js index 3a420b16..ace933fb 100644 --- a/src/domain/session/room/RoomViewModel.js +++ b/src/domain/session/room/RoomViewModel.js @@ -46,7 +46,6 @@ export class RoomViewModel extends ViewModel { try { const timeline = await this._room.openTimeline(); this._tilesCreator = tilesCreator(this.childOptions({ - room: this._room, roomVM: this, timeline, })); @@ -299,6 +298,10 @@ export class RoomViewModel extends ViewModel { } } + get room() { + return this._room; + } + get composerViewModel() { return this._composerVM; } diff --git a/src/domain/session/room/timeline/tiles/SimpleTile.js b/src/domain/session/room/timeline/tiles/SimpleTile.js index efaa0a6a..68037a14 100644 --- a/src/domain/session/room/timeline/tiles/SimpleTile.js +++ b/src/domain/session/room/timeline/tiles/SimpleTile.js @@ -126,7 +126,7 @@ export class SimpleTile extends ViewModel { // TilesCollection contract above get _room() { - return this._options.room; + return this._roomVM.room; } get _roomVM() {