fix(topic-events): repeated invocations of Posts.addTopicEvents caused dupes to be added to DOM

This commit is contained in:
Julian Lam
2021-01-12 11:42:06 -05:00
parent 9559fad8ac
commit df2fdd56ba
2 changed files with 5 additions and 1 deletions

View File

@@ -126,6 +126,6 @@ Events.log = async (tid, payload) => {
events: [payload],
});
({ events } = plugins.hooks.fire('filter:topic.events.log', { events }));
({ events } = await plugins.hooks.fire('filter:topic.events.log', { events }));
return events;
};