Skip to content

Send a 'join' action when entering the call #3055

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 5, 2025
Merged

Conversation

robintown
Copy link
Member

Following #3011, this is one more upgrade to the widget communication that I'd like to make within this release cycle.

The motivating issue is element-hq/element-web#29429. Fundamentally, without a 'join' action, the only info Element Web can use to determine whether it's joined the call is whether a MatrixRTC membership exists. But membership state events can inaccurately represent the client's actual state (whether because delayed events aren't supported, or because the delayed event hasn't timed out yet), so I suggest we send a 'join' action here just as we do in the Element Web Jitsi wrapper to let Element Web tap directly into the widget's local state. (This will need additional Element Web changes, but is certainly backwards compatible.)

If this sounds good, I would backport this change to the release-v0.7.2 branch as well to simplify the rollout of the Element Web changes.

Following a75952c, this is one more upgrade to the widget communication that I'd like to make within this release cycle.

The motivating issue is element-hq/element-web#29429. Fundamentally, without a 'join' action, the only info Element Web can use to determine whether it's joined the call is whether a MatrixRTC membership exists. But membership state events can inaccurately represent the client's actual state (whether because delayed events aren't supported, or because the delayed event hasn't timed out yet), so I suggest we send a 'join' action here just as we do in the Element Web Jitsi wrapper (https://github.com/element-hq/element-web/blob/e9a3625bd6e9a64f216e3caeabca66f48b649332/src/vector/jitsi/index.ts#L503) to let Element Web tap directly into the widget's local state. (This will need additional Element Web changes, but is certainly backwards compatible.)
@robintown robintown requested a review from a team as a code owner March 5, 2025 14:53
@robintown robintown requested a review from hughns March 5, 2025 14:53
@robintown robintown requested review from toger5 and removed request for hughns March 5, 2025 15:21
Copy link
Contributor

@toger5 toger5 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks as expected.

@robintown robintown merged commit 0ca2627 into livekit Mar 5, 2025
10 checks passed
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.

None yet

2 participants