From 3bc41528ae3c41e496a1eb33f39d6e5576152ed9 Mon Sep 17 00:00:00 2001 From: ubermanu <e.vodor@gmail.com> Date: Tue, 16 Mar 2021 20:17:31 +0100 Subject: [PATCH] move chatroom override on top --- src/plugins/sib-reactions.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/plugins/sib-reactions.js b/src/plugins/sib-reactions.js index 230295f..e17f1e6 100644 --- a/src/plugins/sib-reactions.js +++ b/src/plugins/sib-reactions.js @@ -6,6 +6,12 @@ import { Picker } from 'https://cdn.skypack.dev/emoji-picker-element'; */ converse.plugins.add('sib-reactions', { overrides: { + ChatRoom: { + async onMessage(attrs) { + await this.onMessageWithReaction.apply(this, arguments); + return await this.__super__.onMessage.apply(this, arguments); + }, + }, ChatBox: { async onMessage(attrs) { await this.onMessageWithReaction.apply(this, arguments); -- GitLab