mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2025-01-10 12:16:41 +01:00
always pass mediaRepo to call vm
This commit is contained in:
parent
90b6a5ccb6
commit
0c20beb1c0
@ -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})));
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user