From 380ea5acd650db5515ce3d19cfbbc7415352b9ef Mon Sep 17 00:00:00 2001 From: ericek111 Date: Mon, 2 Nov 2026 08:38:50 +0000 Subject: [PATCH] Show away over muted or disabled speakers and microphone Co-Authored-By: Claude Opus 5.5 --- .../main/java/eu/lixko/ts3j/client/net/ClientStatus.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ts3-client/core/src/main/java/eu/lixko/ts3j/client/net/ClientStatus.java b/ts3-client/core/src/main/java/eu/lixko/ts3j/client/net/ClientStatus.java index bb50df3..11c6ae1 100644 --- a/ts3-client/core/src/main/java/eu/lixko/ts3j/client/net/ClientStatus.java +++ b/ts3-client/core/src/main/java/eu/lixko/ts3j/client/net/ClientStatus.java @@ -1,16 +1,16 @@ package eu.lixko.ts3j.client.net; /** - * What the channel tree shows for a client, in the order the official client gives the - * states priority: the first that applies wins. + * What the channel tree shows for a client, in priority order: the first that applies wins. + * Unlike the official client, away outranks muted or disabled speakers and microphone. */ public enum ClientStatus { QUERY, + AWAY, SPEAKERS_DISABLED, SPEAKERS_MUTED, MIC_DISABLED, MIC_MUTED, - AWAY, COMMANDER_TALKING, COMMANDER, TALKING, @@ -18,11 +18,11 @@ public enum ClientStatus { public static ClientStatus of(ClientEntry c) { if (c.isQuery()) return QUERY; + if (c.away) return AWAY; if (!c.outputHardware) return SPEAKERS_DISABLED; if (c.outputMuted) return SPEAKERS_MUTED; if (!c.inputHardware) return MIC_DISABLED; if (c.inputMuted) return MIC_MUTED; - if (c.away) return AWAY; if (c.channelCommander) return c.talking ? COMMANDER_TALKING : COMMANDER; return c.talking ? TALKING : IDLE; }