Skip to content
Snippets Groups Projects
Commit dfc8d4cc authored by ubermanu's avatar ubermanu
Browse files

bugfix: avoid reply on new messages from the same user

parent 1851e01f
No related branches found
No related tags found
4 merge requests!113History, Reply to messages and RAI,!109Reply to message,!108#262 Reply to message,!107Reply to message
/**
* 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;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment