pass updates to avatar view

This commit is contained in:
Bruno Windels 2022-06-02 15:58:26 +02:00
parent 0c20beb1c0
commit d66d810fe2

View file

@ -49,7 +49,7 @@ class StreamView extends TemplateView<IStreamViewModel> {
t.div({className: {
StreamView_avatar: true,
hidden: vm => !vm.isCameraMuted
}}, t.view(new AvatarView(vm, 64), {parentProvidesUpdates: true})),
}}, t.view(new AvatarView(vm, 96), {parentProvidesUpdates: true})),
t.div({
className: {
StreamView_muteStatus: true,
@ -60,4 +60,10 @@ class StreamView extends TemplateView<IStreamViewModel> {
})
]);
}
update(value, props) {
super.update(value);
// update the AvatarView as we told it to not subscribe itself with parentProvidesUpdates
this.updateSubViews(value, props);
}
}