mirror of
https://github.com/pierre42100/ComunicWeb
synced 2024-11-22 12:09:21 +00:00
Fix bad values
This commit is contained in:
parent
98906334a7
commit
bed93d5a19
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user