diff --git a/js/display_content.js b/js/display_content.js index bc8df80..c23d8f4 100644 --- a/js/display_content.js +++ b/js/display_content.js @@ -4,8 +4,13 @@ function drawClients() { result = ""; if (thisClient) { getClientsInChannel(thisClient.channel).forEach((c) => { - isHidden = CONFIG.hideSilent && c.talkStatus == 0; - result += `
`; + isHidden = CONFIG.hideSilent && (c.talkStatus == 0 || c.isMuted()); + + result += `
`; result += '
'; if (c.outputMuted) { result += ' '; diff --git a/js/objects.js b/js/objects.js index 850267f..8755d62 100644 --- a/js/objects.js +++ b/js/objects.js @@ -22,6 +22,10 @@ class Client { this.talkStatus = talkStatus; console.log(`Client created: ${this.id} - ${this.name}`); } + + isMuted() { + return this.inputMuted == true || this.outputMuted == true; + } } class List {