mirror of
https://github.com/pierre42100/ComunicWeb
synced 2024-11-22 12:09:21 +00:00
Fix the way conversations are created
This commit is contained in:
parent
339315395d
commit
ff499f9892
@ -78,7 +78,7 @@ const ConversationsInterface = {
|
|||||||
//Prepare an API request
|
//Prepare an API request
|
||||||
var apiURI = "conversations/create";
|
var apiURI = "conversations/create";
|
||||||
var params = {
|
var params = {
|
||||||
name: infos.conversationName,
|
name: infos.conversationName == null ? "" : infos.conversationName,
|
||||||
follow : infos.follow,
|
follow : infos.follow,
|
||||||
users: infos.users,
|
users: infos.users,
|
||||||
color: infos.color == null ? "" : infos.color.replace("#", "").toUpperCase(),
|
color: infos.color == null ? "" : infos.color.replace("#", "").toUpperCase(),
|
||||||
|
@ -123,7 +123,7 @@ const ConversationsList = {
|
|||||||
var conversationInformations = {
|
var conversationInformations = {
|
||||||
users: selectedUsers,
|
users: selectedUsers,
|
||||||
follow: infos.followConversationInput.checked,
|
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,
|
color: infos.conversationColorInput.value == "" ? null : infos.conversationColorInput.value,
|
||||||
allowEveryoneToAddMembersInput: infos.allowEveryoneToAddMembersInput.checked,
|
allowEveryoneToAddMembersInput: infos.allowEveryoneToAddMembersInput.checked,
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user