mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2025-01-30 06:01:38 +01:00
use mapped value rather than reading parent vm again
This commit is contained in:
parent
08fe430c4b
commit
a020febf8d
@ -66,7 +66,7 @@ export class BaseMessageView extends TemplateView {
|
||||
let reactionsView = null;
|
||||
t.mapSideEffect(vm => vm.reactions, reactions => {
|
||||
if (reactions && this._interactive && !reactionsView) {
|
||||
reactionsView = new ReactionsView(vm.reactions);
|
||||
reactionsView = new ReactionsView(reactions);
|
||||
this.addSubView(reactionsView);
|
||||
li.appendChild(mountView(reactionsView));
|
||||
} else if (!reactions && reactionsView) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user