Add options to hide self and non-talking clients

This commit is contained in:
Jaggernaut555
2023-01-10 17:57:55 -08:00
parent 230ce8f2e2
commit 9a68fca2c7
5 changed files with 8 additions and 2 deletions

View File

@@ -4,7 +4,8 @@ function drawClients() {
result = "";
if (thisClient) {
getClientsInChannel(thisClient.channel).forEach((c) => {
result += `<div class="client-div" style="color:${CONFIG.style.fontColor}; font-size:${CONFIG.style.fontSize}">`;
isHidden = CONFIG.hideSilent && c.talkStatus == 0;
result += `<div class="client-div" ${isHidden ? "hidden" : ""} style="color:${CONFIG.style.fontColor}; font-size:${CONFIG.style.fontSize}">`;
result += '<div class="client-img-div">';
if (c.outputMuted) {
result += ' <img src="img/muted_output.svg" />';