Files
matrix-ai-agent/voice.py
Christian Gick 2a799f5760 fix(voice): set caller E2EE key on participant_connected + for all remote LK identities
Two race conditions when bot joins first (remote=0):
1. Key arrives before participant joins LK → on_participant_connected now applies stored keys
2. Key arrives after session start → on_encryption_key now sets key for all remote_participants by LK identity

Fixes identity mismatch between Matrix device_id (from key event) and LK participant identity.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-02-22 11:30:23 +02:00

20 KiB