Skip to content
Snippets Groups Projects

Allow upload retraction

Merged Emmanuel Vodor requested to merge allow_upload_retraction into beta
3 files
+ 42
0
Compare changes
  • Side-by-side
  • Inline
Files
3
@@ -13,6 +13,12 @@ converse.plugins.add('sib-reply-to-message', {
@@ -13,6 +13,12 @@ converse.plugins.add('sib-reply-to-message', {
}
}
api.listen.on('getMessageActionButtons', (el, buttons) => {
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({
buttons.push({
'i18n_text': __('Reply'),
'i18n_text': __('Reply'),
'handler': ev => {
'handler': ev => {
Loading