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

bugfix: hide the reply button on retracted messages

parent 50a6265b
No related branches found
No related tags found
2 merge requests!136Reactions, Retract upload...,!135Allow upload retraction
......@@ -13,6 +13,12 @@ converse.plugins.add('sib-reply-to-message', {
}
api.listen.on('getMessageActionButtons', (el, buttons) => {
// Do not add the reply button if the message is retracted or correcting
if (el.is_retracted || el.correcting) {
return buttons;
}
buttons.push({
'i18n_text': __('Reply'),
'handler': ev => {
......
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