diff --git a/src/converse-muc-views.js b/src/converse-muc-views.js index 0aacd1f08..828afccd9 100644 --- a/src/converse-muc-views.js +++ b/src/converse-muc-views.js @@ -497,7 +497,7 @@ className: 'chatbox chatroom hidden', is_chatroom: true, events: { - 'change .input.fileupload': 'onFileSelection', + 'change input.fileupload': 'onFileSelection', 'click .close-chatbox-button': 'close', 'click .configure-chatroom-button': 'getAndRenderConfigurationForm', 'click .new-msgs-indicator': 'viewUnreadMessages', diff --git a/src/converse-muc.js b/src/converse-muc.js index 061eb140b..2fed68092 100644 --- a/src/converse-muc.js +++ b/src/converse-muc.js @@ -339,18 +339,6 @@ return jid + (nick !== null ? `/${nick}` : ""); }, - sendChatRoomFile (text, to) { - const msgid = _converse.connection.getUniqueId(); - const stanza = $msg({ - 'from': _converse.connection.jid, - 'to': to, - 'type': 'groupchat', - 'id': msgid - }).c("body").t(text).up() - .c("x", {'xmlns': Strophe.NS.OUTOFBAND}).c('url').t(text).up(); - _converse.connection.send(stanza); - }, - sendChatState () { /* Sends a message with the status of the user in this chat session * as taken from the 'chat_state' attribute of the chat box. diff --git a/src/templates/toolbar_fileupload.html b/src/templates/toolbar_fileupload.html index 2aaff6b0e..4dabc96c9 100644 --- a/src/templates/toolbar_fileupload.html +++ b/src/templates/toolbar_fileupload.html @@ -1,4 +1,4 @@ -
  • +