From 00f0bf2f736ff42dbee8d4b7592a9738a90858a7 Mon Sep 17 00:00:00 2001 From: Pierre HUBERT Date: Sat, 25 Apr 2020 18:24:47 +0200 Subject: [PATCH] Automatically update checkbox --- assets/js/components/conversations/chatWindows.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/assets/js/components/conversations/chatWindows.js b/assets/js/components/conversations/chatWindows.js index 9e8b1f70..7d9b059f 100644 --- a/assets/js/components/conversations/chatWindows.js +++ b/assets/js/components/conversations/chatWindows.js @@ -548,6 +548,9 @@ const ConvChatWindow = { if(conversation.infos.ID_owner == userID()){ //Update conversation members ComunicWeb.components.userSelect.pushEntries(settingsForm.usersElement, conversation.infos.members); + + // Update checkbox to allow or not everyone to add members + $(settingsForm.allowEveryoneToAddMembers).iCheck(conversation.infos.canEveryoneAddMembers ? "check" : "uncheck"); } else { //We disable name field