diff --git a/assets/js/components/conversations/chatWindows.js b/assets/js/components/conversations/chatWindows.js index a5292a80..05974e56 100644 --- a/assets/js/components/conversations/chatWindows.js +++ b/assets/js/components/conversations/chatWindows.js @@ -736,7 +736,7 @@ const ConvChatWindow = { if(conversation.infos.members.find(m => m.user_id == userID()).is_admin){ //Specify conversation name let nameValue = conversation.settingsForm.conversationNameInput.value - newValues.name = (nameValue === "" ? false : nameValue); + newValues.name = (nameValue === "" ? null : nameValue); let colorValue = conversation.settingsForm.conversationColorInput.value newValues.color = (colorValue == "" ? null : colorValue) diff --git a/assets/js/components/conversations/interface.js b/assets/js/components/conversations/interface.js index 7b080288..64c73dbe 100644 --- a/assets/js/components/conversations/interface.js +++ b/assets/js/components/conversations/interface.js @@ -122,7 +122,7 @@ const ConversationsInterface = { //Add conversation name (if specified) if(infos.name !== undefined) - params.name = infos.name; + params.name = infos.name == null ? "" : infos.name; //Add conversation following status (if specified) if(infos.following !== undefined)