Fix bad values

This commit is contained in:
Pierre HUBERT 2021-03-07 14:09:36 +01:00
parent 98906334a7
commit bed93d5a19

View File

@ -665,7 +665,7 @@ const ConvChatWindow = {
ComunicWeb.components.userSelect.pushEntries(settingsForm.usersElement, conversation.infos.members.map(m => m.user_id)); ComunicWeb.components.userSelect.pushEntries(settingsForm.usersElement, conversation.infos.members.map(m => m.user_id));
// Update checkbox to allow or not everyone to add members // Update checkbox to allow or not everyone to add members
$(settingsForm.allowEveryoneToAddMembers).iCheck(conversation.infos.canEveryoneAddMembers ? "check" : "uncheck"); $(settingsForm.allowEveryoneToAddMembers).iCheck(conversation.infos.can_everyone_add_members ? "check" : "uncheck");
settingsForm.usersElement.parentNode.style.display = "none"; settingsForm.usersElement.parentNode.style.display = "none";
@ -678,7 +678,7 @@ const ConvChatWindow = {
} }
//Update follow conversation checkbox status //Update follow conversation checkbox status
$(settingsForm.followConversationInput).iCheck(conversation.infos.following == "1" ? "check" : "uncheck"); $(settingsForm.followConversationInput).iCheck(conversation.infos.members.find(m => m.user_id == userID()).following ? "check" : "uncheck");
//Save settings form in global form //Save settings form in global form
conversation.settingsForm = settingsForm; conversation.settingsForm = settingsForm;