mirror of
https://github.com/livekit/livekit.git
synced 2026-12-05 07:59:09 +00:00
Replace the per-packet overwritten flag with a protocol bump to 20: clients check the server protocol to know these fields are set when needed. participant_identity is now handled exactly as on master for every payload, so older clients see no change. In particular an agent's encrypted packet naming another participant still gets the agent's identity, so encrypted packets can't be used to impersonate anyone to clients that don't read the new fields. The SFU clears data_stream_on_behalf_of_identity and data_stream_actual_sender_identity on every packet, and sets them when an agent sends a text stream header, chat message or encrypted packet on behalf of another participant (actual sender "" for a hidden agent).