Fixes #1806: Two file upload buttons appear in MUC
This commit is contained in:
parent
9b4276721c
commit
0d8b3e1839
@ -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',
|
||||
|
Loading…
Reference in New Issue
Block a user