chat: New hide method to completely hide chat

This commit is contained in:
Richard Hansen 2021-12-06 17:41:00 -05:00
parent 8ae5f25075
commit 1cbba4ea3a
2 changed files with 10 additions and 4 deletions

View file

@ -76,8 +76,7 @@ const getParameters = [
callback: (val) => {
if (val === 'false') {
settings.hideChat = true;
chat.reduce();
$('#chaticon').hide();
chat.hide();
}
},
},
@ -480,10 +479,9 @@ const pad = {
}
if (window.clientVars.readonly) {
chat.reduce();
chat.hide();
$('#myusernameedit').attr('disabled', true);
$('#chatinput').attr('disabled', true);
$('#chaticon').hide();
$('#options-chatandusers').parent().hide();
$('#options-stickychat').parent().hide();
} else if (!settings.hideChat) { $('#chaticon').show(); }