Commit 0d8b3e18 authored by JC Brand's avatar JC Brand

Fixes #1806: Two file upload buttons appear in MUC

parent 9b427672
......@@ -367,6 +367,9 @@ converse.plugins.add('converse-chatview', {
},
async addFileUploadButton () {
if (this.el.querySelector('.chat-toolbar .upload-file')) {
return;
}
if (await _converse.api.disco.supports(Strophe.NS.HTTPUPLOAD, _converse.domain)) {
this.el.querySelector('.chat-toolbar').insertAdjacentHTML(
'beforeend',
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment