mirror of
https://github.com/pierre42100/ComunicWeb
synced 2024-11-22 12:09:21 +00:00
Fix issue when renaming conversation
This commit is contained in:
parent
bed93d5a19
commit
506a0a7d38
@ -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)
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user