diff --git a/assets/js/components/conversations/interface.js b/assets/js/components/conversations/interface.js index cd32e157..c15d1d9d 100644 --- a/assets/js/components/conversations/interface.js +++ b/assets/js/components/conversations/interface.js @@ -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(), diff --git a/assets/js/components/conversations/list.js b/assets/js/components/conversations/list.js index 686cf670..24cbfd98 100644 --- a/assets/js/components/conversations/list.js +++ b/assets/js/components/conversations/list.js @@ -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, };