Can send file from chat box

This commit is contained in:
Pierre HUBERT 2021-03-06 15:06:54 +01:00
parent b44755b91e
commit 5c6276d11a
2 changed files with 5 additions and 6 deletions

View File

@ -159,6 +159,7 @@ const ConvChatWindow = {
type: "input",
elemType: "file",
});
fileInput.accept = ServerConfig.conf.allowed_conversation_files_type.join(", ");
//Create button group
@ -216,7 +217,7 @@ const ConvChatWindow = {
createElem2({
type: "i",
appendTo: fileButton,
class: "fa fa-image"
class: "fa fa-plus"
});
//Add send button
@ -234,8 +235,8 @@ const ConvChatWindow = {
class: "fa fa-send-o",
});
console.info(infosBox)
//ConversationsUtils.registerInputToSendFile(, fileInput, formContainer);
ConversationsUtils.registerInputToSendFile(infosBox.conversationID, fileInput, conversationFormContainer);
// =========== /SEND FILES ===========

View File

@ -138,9 +138,7 @@ ComunicWeb.components.conversations.manager = {
}
//Open the first conversation
ComunicWeb.components.conversations.manager.addConversation({
conversationID: result.conversationsID[0],
});
ComunicWeb.components.conversations.manager.addConversation(result.conversationsID[0]);
};