mirror of
https://github.com/pierre42100/ComunicWeb
synced 2024-12-24 09:58:51 +00:00
Fix the way conversations are created
This commit is contained in:
parent
339315395d
commit
ff499f9892
@ -78,7 +78,7 @@ const ConversationsInterface = {
|
||||
//Prepare an API request
|
||||
var apiURI = "conversations/create";
|
||||
var params = {
|
||||
name: infos.conversationName,
|
||||
name: infos.conversationName == null ? "" : infos.conversationName,
|
||||
follow : infos.follow,
|
||||
users: infos.users,
|
||||
color: infos.color == null ? "" : infos.color.replace("#", "").toUpperCase(),
|
||||
|
@ -123,7 +123,7 @@ const ConversationsList = {
|
||||
var conversationInformations = {
|
||||
users: selectedUsers,
|
||||
follow: infos.followConversationInput.checked,
|
||||
conversationName: (infos.conversationNameInput.value == "" ? false : infos.conversationNameInput.value),
|
||||
conversationName: (infos.conversationNameInput.value == "" ? null : infos.conversationNameInput.value),
|
||||
color: infos.conversationColorInput.value == "" ? null : infos.conversationColorInput.value,
|
||||
allowEveryoneToAddMembersInput: infos.allowEveryoneToAddMembersInput.checked,
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user