feat: show real TeamSpeak avatars

The connector now reports client_flag_avatar (the avatar's MD5) per client.
The browser derives /avatar_<uid> from the UID and fetches it through the
existing channel-0 file cache used for group icons, again whenever the hash
changes. Only the own channel and the selected client are fetched, so a big
server does not push every avatar through the gateway; avatars are capped at
512 KiB like icons. They replace the initials tile in the tree (Nova/Pulse),
the speaking-now bar, and appear in the client info panel.

Also fixes the Nova connect dialog staying open over an auto-connect: its
"forced open while disconnected" effect ran after the auto-connect had closed
it, and nothing closed it again once connected.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Hu2cuPLqpuKVfd9wWFFakU
This commit is contained in:
MoepchiandClaude Opus 5.5 committed 2026-10-03 00:50:54 +00:00
1 parent 7b3cb5ef09
commit 4b245d69d3
4 files changed
+124 -17

No files matched your search

+4
View File
@@ -59,6 +59,8 @@ export interface ClientInfo {
isQuery: boolean;
/** Broadcasting a TS6 Stream/Call. The stream id is fetched separately. */
isStreaming: boolean;
/** MD5 of the avatar (`client_flag_avatar`), empty without one. */
avatarHash: string;
}
export interface GroupEntry {
@@ -318,6 +320,7 @@ export class Ts3Connection {
has_talk_power: boolean;
is_query?: boolean;
is_streaming?: boolean;
avatar_hash?: string;
}
interface RawChannelInfo {
@@ -493,6 +496,7 @@ export class Ts3Connection {
hasTalkPower: c.has_talk_power,
isQuery: Boolean(c.is_query),
isStreaming: Boolean(c.is_streaming),
avatarHash: c.avatar_hash ?? "",
})),
ownClientId: event.own_client_id ?? 0,
serverMaxClients: event.server_max_clients ?? 0,