mirror of
https://github.com/DerTyp7/teamspeak-obs-overlay.git
synced 2025-10-30 13:17:11 +01:00
moved determination of isHidden to client object
This commit is contained in:
@@ -6,14 +6,7 @@ class Channel {
|
||||
}
|
||||
|
||||
class Client {
|
||||
constructor(
|
||||
id,
|
||||
channel,
|
||||
name,
|
||||
inputMuted = false,
|
||||
outputMuted = false,
|
||||
talkStatus = 0
|
||||
) {
|
||||
constructor(id, channel, name, inputMuted = false, outputMuted = false, talkStatus = 0) {
|
||||
this.id = id;
|
||||
this.channel = channel;
|
||||
this.name = name;
|
||||
@@ -26,6 +19,12 @@ class Client {
|
||||
isMuted() {
|
||||
return this.inputMuted == true || this.outputMuted == true;
|
||||
}
|
||||
|
||||
isHidden() {
|
||||
return (
|
||||
(CONFIG.hideSilent && (this.talkStatus == 0 || this.isMuted())) || (CONFIG.hideSelf && this.id == selfClient.id)
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
class List {
|
||||
|
||||
Reference in New Issue
Block a user