Christian Gick cf519595d6 fix(voice): poll for EC key rotation post-connect, set all key indices
Element Call rotates its encryption key when a new participant joins the
LiveKit room. Previously the bot fetched only the pre-join key and set it
at index 0, while EC was already encrypting with the rotated key (index 1).

Changes:
- After connecting to LiveKit, poll the Matrix timeline up to 5s (10×0.5s)
  to detect the post-join key rotation
- Set ALL known caller key indices (not just 0) so the Rust FFI cryptor
  has the correct key regardless of which index EC is currently using
- Also set via caller_identity (belt+suspenders) if different from LK identity

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-02-22 08:20:44 +02:00
Description
Matrix AI voice agent - LiveKit + LiteLLM
5.5 MiB
Languages
Python 99.1%
Dockerfile 0.8%
Shell 0.1%