Require a visible matching UID for individual whisper recipients

This commit is contained in:
omar committed 2026-11-27 06:33:00 +03:00
1 parent 90c28eedbb
commit 8a98e3dcc6
4 files changed
+21 -3

No files matched your search

+2
View File
@@ -723,6 +723,8 @@ Native snapshot orchestration in `native/src/services/snapshots.rs` uses ordinar
### 4.22 Whisper routes
A client number is not an identity. An individual recipient needs a nonempty UID matching the live roster. A missing, empty or mismatched UID omits that recipient; if nothing resolves, the command returns `no_targets`. An explicitly targeted channel remains a channel target even when an occupant has no visible UID.
`whisper_start {epoch:u32,target}` resolves a route against the live connection; epoch must be nonzero. Target is `{kind:"list",entries:[{type:1|2,uuid,name}]}`, `{kind:"group",group_type:0..3,target_mode:0..6,group_id,server_uuid}`, or `{kind:"ids",clients:[{id,uid}],channel_ids:[…]}`. At most 255 resolved clients and channels. `whisper_stop {epoch}` stops that route; `set_whisper_receive {mode:"allow_all"|"deny_all"}` controls incoming whispers.
`audio_frame` accepts optional `whisper:epoch`; stale/stopped/other-generation tags drop, never fall back to ordinary voice. Untagged queued frames also drop while a whisper route is held. Transitions end the previous spurt and discard capture queued before the transition. Incoming `whisper_received {client_id}` feeds reply history; receive deny mode removes queued whispers. This is real TeamSpeak whisper packet routing, not local recipient filtering.