updates #161
* Fix typo which broke MUC file upload * Remove unused method * Move file input into li element
This commit is contained in:
parent
a15c9e54d0
commit
e0aaeb66ea
@ -497,7 +497,7 @@
|
|||||||
className: 'chatbox chatroom hidden',
|
className: 'chatbox chatroom hidden',
|
||||||
is_chatroom: true,
|
is_chatroom: true,
|
||||||
events: {
|
events: {
|
||||||
'change .input.fileupload': 'onFileSelection',
|
'change input.fileupload': 'onFileSelection',
|
||||||
'click .close-chatbox-button': 'close',
|
'click .close-chatbox-button': 'close',
|
||||||
'click .configure-chatroom-button': 'getAndRenderConfigurationForm',
|
'click .configure-chatroom-button': 'getAndRenderConfigurationForm',
|
||||||
'click .new-msgs-indicator': 'viewUnreadMessages',
|
'click .new-msgs-indicator': 'viewUnreadMessages',
|
||||||
|
@ -339,18 +339,6 @@
|
|||||||
return jid + (nick !== null ? `/${nick}` : "");
|
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 () {
|
sendChatState () {
|
||||||
/* Sends a message with the status of the user in this chat session
|
/* Sends a message with the status of the user in this chat session
|
||||||
* as taken from the 'chat_state' attribute of the chat box.
|
* as taken from the 'chat_state' attribute of the chat box.
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
<input type="file" class="fileupload" multiple style="display:none"/>
|
|
||||||
<li class="upload-file">
|
<li class="upload-file">
|
||||||
<a class="fa fa-paperclip" title="{{{o.tooltip_upload_file}}}"></a>
|
<a class="fa fa-paperclip" title="{{{o.tooltip_upload_file}}}"></a>
|
||||||
|
<input type="file" class="fileupload" multiple style="display:none"/>
|
||||||
</li>
|
</li>
|
||||||
|
Loading…
Reference in New Issue
Block a user