avatars: show other clients' myTeamSpeak avatars
TeamSpeak 6 tells a client's myTeamSpeak avatar as client_myteamspeak_avatar "<state>,<url>;...". The book now keeps it, and the model reads it as the official client does (one bad entry, an empty one too, spoils the value; the online picture first, else away, do not disturb, offline; HTTPS links only). The engine downloads it from the web (4 MiB at most, cached by link) where the server's avatar is not shown: the client has none, there is no voice connection to get it over (observing), or its download gave up (the server's files unreachable). The server's avatar comes first, as in the official client. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01VZBWxxMsxUzp4PSTKVzbZN
This commit is contained in:
1 parent
f9243d3cad
commit
c2e345c67f
7 files changed
+340
-29
No files matched your search
@@ -89,6 +89,7 @@ pub fn client_from_row(row: &Row) -> Option<ClientInfo> {
|
||||
// What the row carries (`notifycliententerview` all of it,
|
||||
// `clientlist -voice -groups -icon` some).
|
||||
avatar: row.get("client_flag_avatar").filter(|a| !a.is_empty()).map(str::to_string),
|
||||
myts_avatar: row.get("client_myteamspeak_avatar").and_then(voelin_model::myts_avatar_url),
|
||||
description: row.get("client_description").filter(|d| !d.is_empty()).map(str::to_string),
|
||||
talk_power: row.parse("client_talk_power").unwrap_or(0),
|
||||
talker: row.flag("client_is_talker").unwrap_or(false),
|
||||
|
||||
Reference in new issue
Block a user