Track TeamSpeak 6 channel banners in the book and the model

A TeamSpeak 6 channel can have a banner picture (channel_banner_gfx_url,
channel_banner_mode) that the official client draws behind the channel.
The server sends both in channellist, notifychannelcreated and
notifychanneledited (seen on 6.0.0-beta13.1), but the declarations only
had them in channellist and the book had no place for them, so they were
dropped with an "Unknown argument" warning. The book's Channel keeps them
now (local patch 13 in crates/proto/UPSTREAM.md) and ChannelInfo carries
the address and the mode.

The mode's numbers are those of the host banner (the server's channeledit
documentation: 0 as it is, 1 stretched, 2 scaled keeping the aspect
ratio), so HostBannerMode becomes BannerMode and serves both. The book
keeps the mode as text, as upstream declared it: a value the generated
parser does not know would otherwise drop the whole channel list.

The query observer asks channellist for -icon and -banners (TeamSpeak 3
and 6 ignore flags they do not know) and reads banners from the channel
events too, so invisible presence shows them as well.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
selikhovandClaude Opus 5.5 committed 2026-10-04 14:05:38 +03:00
1 parent 44a58ff590
commit 04a6d1f931
9 files changed
+201 -18

No files matched your search

+11
View File
@@ -106,3 +106,14 @@ against or offered back to upstream.
handed those fewer than 32 bytes to `from_short`, which refused them: one
identity in 256 (the official client's ones included) could not be imported.
The scalar is padded to 32 bytes now; a test round-trips such keys.
13. **Channel banners** (`tsproto-structs/declarations/Messages.toml`, `Book.toml`).
TeamSpeak 6 channels have a banner picture, `channel_banner_gfx_url` and
`channel_banner_mode`, which its server sends in `channellist`,
`notifychannelcreated` and `notifychanneledited` (verified against
6.0.0-beta13.1; upstream declared them for `channellist` only, so creating
or editing a channel logged "Unknown argument" and lost them). The book's
`Channel` keeps them as `banner_gfx_url` and `banner_mode`. The mode stays
a string, as upstream declared it, so a value the parser does not know
cannot drop the whole channel list; its numbers are those of
`HostBannerMode` (the server's `channeledit` documentation: 0 as it is,
1 stretched, 2 scaled keeping the aspect ratio).