* Fix typo which broke MUC file upload
* Remove unused method
* Move file input into li element
This commit is contained in:
JC Brand 2018-04-24 07:49:37 +02:00
parent a15c9e54d0
commit e0aaeb66ea
3 changed files with 2 additions and 14 deletions

View File

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

View File

@ -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.

View File

@ -1,4 +1,4 @@
<input type="file" class="fileupload" multiple style="display:none"/>
<li class="upload-file">
<a class="fa fa-paperclip" title="{{{o.tooltip_upload_file}}}"></a>
<input type="file" class="fileupload" multiple style="display:none"/>
</li>