Fix issue when renaming conversation

This commit is contained in:
Pierre HUBERT 2021-03-07 14:12:47 +01:00
parent bed93d5a19
commit 506a0a7d38
2 changed files with 2 additions and 2 deletions

View File

@ -736,7 +736,7 @@ const ConvChatWindow = {
if(conversation.infos.members.find(m => m.user_id == userID()).is_admin){ if(conversation.infos.members.find(m => m.user_id == userID()).is_admin){
//Specify conversation name //Specify conversation name
let nameValue = conversation.settingsForm.conversationNameInput.value let nameValue = conversation.settingsForm.conversationNameInput.value
newValues.name = (nameValue === "" ? false : nameValue); newValues.name = (nameValue === "" ? null : nameValue);
let colorValue = conversation.settingsForm.conversationColorInput.value let colorValue = conversation.settingsForm.conversationColorInput.value
newValues.color = (colorValue == "" ? null : colorValue) newValues.color = (colorValue == "" ? null : colorValue)

View File

@ -122,7 +122,7 @@ const ConversationsInterface = {
//Add conversation name (if specified) //Add conversation name (if specified)
if(infos.name !== undefined) if(infos.name !== undefined)
params.name = infos.name; params.name = infos.name == null ? "" : infos.name;
//Add conversation following status (if specified) //Add conversation following status (if specified)
if(infos.following !== undefined) if(infos.following !== undefined)