Skip to content

[stable35] fix(call): guard against a missing local state broadcaster when leaving a call - #19261

Merged
Antreesy merged 1 commit into
stable35from
backport/19083/stable35
Sep 3, 2026
Merged

[stable35] fix(call): guard against a missing local state broadcaster when leaving a call#19261
Antreesy merged 1 commit into
stable35from
backport/19083/stable35

Conversation

@backportbot

@backportbot backportbot Bot commented Sep 3, 2026

Copy link
Copy Markdown

Backport of PR #19083

…ng a call

The "beforeLeaveCall" handler assumes that "beforeJoinCall" ran before it and
left a broadcaster behind. The variable is null whenever the call was not
joined in this page session, and it is set back to null after the first
leave. leaveRoom() calls leaveCurrentCall() unconditionally, so leaving or
switching a conversation reaches the handler either way and raises "Cannot
read properties of null (reading 'destroy')".

The exception is raised inside the promise chain of leaveCall(), so it aborts
whatever the caller was doing, for example the switchto handling that moves
participants to another conversation when a one-to-one conversation is
extended into a group conversation.

Signed-off-by: Baki Burak Öğün <63836730+bakiburakogun@users.noreply.github.com>
@backportbot
backportbot Bot requested a review from Antreesy September 3, 2026 15:30
@backportbot backportbot Bot added this to the ⛅ Next RC (35) milestone Sep 3, 2026
@Antreesy
Antreesy merged commit 76afc5a into stable35 Sep 3, 2026
29 checks passed
@Antreesy
Antreesy deleted the backport/19083/stable35 branch September 3, 2026 15:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants