Skip to content

Fix: Empty VC & leave/rejoin causes no audio to be heard/played from libdave#3244

Merged
quinchs merged 1 commit into
devfrom
fix/dave-vc-users-updated
Mar 4, 2026
Merged

Fix: Empty VC & leave/rejoin causes no audio to be heard/played from libdave#3244
quinchs merged 1 commit into
devfrom
fix/dave-vc-users-updated

Conversation

@quinchs

@quinchs quinchs commented Mar 4, 2026

Copy link
Copy Markdown
Member

Summary

There were a few issues with the new libdave implementation related to playing audio in an empty VC and when users leave/rejoin

Empty VC causes audio to fail to be encrypted/sent

Fixed by setting the encryptors pass through mode to true when a session is first created, this causes any attempts at encryption before proper initialization to just not happen, fixing a case where the stream would fail with MissingKeyRatchet.

Users joining/leaving leads to no audio heard

Fixed by sending MLS key packages on prepare epoch, like the spec says to, as well as syncing a new users decryptor to the latest sessions state.

@github-actions

github-actions Bot commented Mar 4, 2026

Copy link
Copy Markdown

Test Results

  1 files  ±0    1 suites  ±0   0s ⏱️ ±0s
230 tests ±0  230 ✅ ±0  0 💤 ±0  0 ❌ ±0 
237 runs  ±0  237 ✅ ±0  0 💤 ±0  0 ❌ ±0 

Results for commit 092e5f0. ± Comparison against base commit a9b6133.

@quinchs quinchs merged commit 1c534fa into dev Mar 4, 2026
3 checks passed
@quinchs quinchs deleted the fix/dave-vc-users-updated branch March 4, 2026 04:58
kshitijanurag pushed a commit to kshitijanurag/Discord.Net that referenced this pull request Mar 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant