Fix broken emojis after matrix-js-sdk update

This commit is contained in:
10G Meow 2022-11-05 18:35:59 +02:00
parent fe150e621f
commit a77957abfc
2 changed files with 7 additions and 7 deletions

View file

@ -29,7 +29,7 @@ export default {
}
},
mounted() {
this.reactions = this.timelineSet.getRelationsForEvent(this.event.getId(), 'm.annotation', 'm.reaction');
this.reactions = this.timelineSet.relations.getChildEventsForEvent(this.event.getId(), 'm.annotation', 'm.reaction');
this.event.on("Event.relationsCreated", this.onRelationsCreated);
},
beforeDestroy() {
@ -40,7 +40,7 @@ export default {
},
methods: {
onRelationsCreated() {
this.reactions = this.timelineSet.getRelationsForEvent(this.event.getId(), 'm.annotation', 'm.reaction');
this.reactions = this.timelineSet.relations.getChildEventsForEvent(this.event.getId(), 'm.annotation', 'm.reaction');
},
onClickEmoji(emoji) {
this.$bubble('send-quick-reaction', {reaction:emoji, event:this.event});
@ -75,7 +75,7 @@ export default {
oldValue.off('Relations.add', this.onAddRelation);
}
if (newValue) {
newValue.on('Relations.add', this.onAddRelation);
newValue.on('Relations.add', this.onAddRelation);
}
this.processReactions();
},