forked from mystiq/hydrogen-web
always pass mediaRepo to call vm
This commit is contained in:
parent
90b6a5ccb6
commit
0c20beb1c0
1 changed files with 2 additions and 1 deletions
|
@ -67,8 +67,9 @@ export class RoomViewModel extends ViewModel {
|
||||||
this.emitChange("callViewModel");
|
this.emitChange("callViewModel");
|
||||||
}));
|
}));
|
||||||
const call = this._callObservable.get();
|
const call = this._callObservable.get();
|
||||||
|
// TODO: cleanup this duplication to create CallViewModel
|
||||||
if (call) {
|
if (call) {
|
||||||
this._callViewModel = new CallViewModel(this.childOptions({call}));
|
this._callViewModel = this.track(new CallViewModel(this.childOptions({call, mediaRepository: this._room.mediaRepository})));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue