forked from mystiq/hydrogen-web
pass updates to avatar view
This commit is contained in:
parent
0c20beb1c0
commit
d66d810fe2
1 changed files with 7 additions and 1 deletions
|
@ -49,7 +49,7 @@ class StreamView extends TemplateView<IStreamViewModel> {
|
||||||
t.div({className: {
|
t.div({className: {
|
||||||
StreamView_avatar: true,
|
StreamView_avatar: true,
|
||||||
hidden: vm => !vm.isCameraMuted
|
hidden: vm => !vm.isCameraMuted
|
||||||
}}, t.view(new AvatarView(vm, 64), {parentProvidesUpdates: true})),
|
}}, t.view(new AvatarView(vm, 96), {parentProvidesUpdates: true})),
|
||||||
t.div({
|
t.div({
|
||||||
className: {
|
className: {
|
||||||
StreamView_muteStatus: true,
|
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);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue