fix: Use empty bytes instead of None for shared_key

NoneType causes TypeError in patched room.py proto assignment.
Empty bytes is falsy so shared_key is not set in proto,
initializing key provider in per-participant mode.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Christian Gick
2026-02-22 07:02:33 +02:00
parent 9ebf90c8bb
commit 685218247a

View File

@@ -76,7 +76,7 @@ def _build_e2ee_options() -> rtc.E2EEOptions:
Element Call uses: ratchetWindowSize=16, keyringSize=256, salt="LKFrameEncryptionKey"
"""
key_opts = rtc.KeyProviderOptions(
shared_key=None,
shared_key=b"",
ratchet_window_size=16,
ratchet_salt=b"LKFrameEncryptionKey",
failure_tolerance=-1,