mirror of
				https://github.com/pierre42100/ComunicWeb
				synced 2025-10-31 10:14:51 +00:00 
			
		
		
		
	Fix issue when renaming conversation
This commit is contained in:
		| @@ -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) | ||||||
|   | |||||||
| @@ -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) | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user