Fixes #1806: Two file upload buttons appear in MUC

This commit is contained in:
JC Brand 2019-12-19 17:29:33 +01:00
parent 9b4276721c
commit 0d8b3e1839

View File

@ -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',