always pass mediaRepo to call vm

This commit is contained in:
Bruno Windels 2022-06-02 15:58:03 +02:00
parent 90b6a5ccb6
commit 0c20beb1c0

View file

@ -67,8 +67,9 @@ export class RoomViewModel extends ViewModel {
this.emitChange("callViewModel");
}));
const call = this._callObservable.get();
// TODO: cleanup this duplication to create CallViewModel
if (call) {
this._callViewModel = new CallViewModel(this.childOptions({call}));
this._callViewModel = this.track(new CallViewModel(this.childOptions({call, mediaRepository: this._room.mediaRepository})));
}
}