From 685218247a83215060008de46e2173398527b42f Mon Sep 17 00:00:00 2001 From: Christian Gick Date: Sun, 22 Feb 2026 07:02:33 +0200 Subject: [PATCH] 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 --- voice.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/voice.py b/voice.py index d1c3319..3f5dbd9 100644 --- a/voice.py +++ b/voice.py @@ -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,