Skip to content

fix(core): skip conference MLS decrypt while leaving a call [WPB-24984]#21353

Open
thisisamir98 wants to merge 1 commit into
devfrom
WPB-24984-call
Open

fix(core): skip conference MLS decrypt while leaving a call [WPB-24984]#21353
thisisamir98 wants to merge 1 commit into
devfrom
WPB-24984-call

Conversation

@thisisamir98
Copy link
Copy Markdown
Collaborator

@thisisamir98 thisisamir98 commented May 19, 2026

BugWPB-24984 [Web] "Couldnt find conversation" error

Problem: When a user hangs up, leaveConferenceSubconversation wipes the conference MLS group in core-crypto, but queued conversation.mls-message-add events for that subconv can still be handled moments later. Decrypting them then fails with MlsErrorOther "Couldn't find conversation" and spams error logs.

Solution: Track parents that are tearing down the conference subconv and return null from handleMLSMessageAddEvent for conference message-add events during that window, so we never call core-crypto for decrypt. Clear the flag on join and in a finally block after leave completes.

Problem: When a user hangs up, leaveConferenceSubconversation wipes the conference
MLS group in core-crypto, but queued conversation.mls-message-add events
for that subconv can still be handled moments later. Decrypting them then
fails with MlsErrorOther "Couldn't find conversation" and spams error logs.

Solution: Track parents that are tearing down the conference subconv and return null
from handleMLSMessageAddEvent for conference message-add events during that
window, so we never call core-crypto for decrypt. Clear the flag on join and
in a finally block after leave completes.
@thisisamir98 thisisamir98 changed the title fix(core): skip conference MLS decrypt while leaving a call fix(core): skip conference MLS decrypt while leaving a call [WPB-24984] May 19, 2026
@thisisamir98 thisisamir98 requested a review from EnricoSchw May 19, 2026 18:57
@sonarqubecloud
Copy link
Copy Markdown

@thisisamir98 thisisamir98 requested a review from typfel May 19, 2026 18:58
@github-actions
Copy link
Copy Markdown
Contributor

🔗 Download Full Report Artifact

🧪 Playwright Test Summary

  • Passed: 15
  • Failed: 0
  • Skipped: 0
  • 🔁 Flaky: 0
  • 📊 Total: 15
  • Total Runtime: 106.6s (~ 1 min 47 sec)

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