From dfc8d4cc77c28a6b69959ea1496deff7e4085a0f Mon Sep 17 00:00:00 2001 From: ubermanu <e.vodor@gmail.com> Date: Mon, 15 Mar 2021 14:16:43 +0100 Subject: [PATCH] bugfix: avoid reply on new messages from the same user --- src/plugins/sib-reply-to-message.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/plugins/sib-reply-to-message.js b/src/plugins/sib-reply-to-message.js index cc36c79..4871e3e 100644 --- a/src/plugins/sib-reply-to-message.js +++ b/src/plugins/sib-reply-to-message.js @@ -1,5 +1,6 @@ /** * Add an action button to reply to a message. + * TODO: Add settings to handle this plugin */ converse.plugins.add('sib-reply-to-message', { initialize() { @@ -11,7 +12,7 @@ converse.plugins.add('sib-reply-to-message', { // Do not add if the message is not from a MUC // Do not add if the message is from the current user - if (el.model.get('type') !== 'groupchat' || el.model.get('from_real_jid') === _converse.bare_jid) { + if (el.model.get('type') !== 'groupchat' || el.model.get('sender') === 'me') { return buttons; } -- GitLab