From bed93d5a198e352c9abdac2bc1f7ee5283d3b9e3 Mon Sep 17 00:00:00 2001 From: Pierre HUBERT Date: Sun, 7 Mar 2021 14:09:36 +0100 Subject: [PATCH] Fix bad values --- assets/js/components/conversations/chatWindows.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/assets/js/components/conversations/chatWindows.js b/assets/js/components/conversations/chatWindows.js index 0e635770..a5292a80 100644 --- a/assets/js/components/conversations/chatWindows.js +++ b/assets/js/components/conversations/chatWindows.js @@ -665,7 +665,7 @@ const ConvChatWindow = { ComunicWeb.components.userSelect.pushEntries(settingsForm.usersElement, conversation.infos.members.map(m => m.user_id)); // 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"; @@ -678,7 +678,7 @@ const ConvChatWindow = { } //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 conversation.settingsForm = settingsForm;