mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 11:35:04 +01:00
Make RoomViewModel's room public and stop feeding it to tileCreator
This commit is contained in:
parent
4c1aeb342a
commit
bf1f288a92
@ -46,7 +46,6 @@ export class RoomViewModel extends ViewModel {
|
|||||||
try {
|
try {
|
||||||
const timeline = await this._room.openTimeline();
|
const timeline = await this._room.openTimeline();
|
||||||
this._tilesCreator = tilesCreator(this.childOptions({
|
this._tilesCreator = tilesCreator(this.childOptions({
|
||||||
room: this._room,
|
|
||||||
roomVM: this,
|
roomVM: this,
|
||||||
timeline,
|
timeline,
|
||||||
}));
|
}));
|
||||||
@ -299,6 +298,10 @@ export class RoomViewModel extends ViewModel {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
get room() {
|
||||||
|
return this._room;
|
||||||
|
}
|
||||||
|
|
||||||
get composerViewModel() {
|
get composerViewModel() {
|
||||||
return this._composerVM;
|
return this._composerVM;
|
||||||
}
|
}
|
||||||
|
@ -126,7 +126,7 @@ export class SimpleTile extends ViewModel {
|
|||||||
// TilesCollection contract above
|
// TilesCollection contract above
|
||||||
|
|
||||||
get _room() {
|
get _room() {
|
||||||
return this._options.room;
|
return this._roomVM.room;
|
||||||
}
|
}
|
||||||
|
|
||||||
get _roomVM() {
|
get _roomVM() {
|
||||||
|
Loading…
Reference in New Issue
Block a user