Skip to content
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

Use new method to wait until a room is ready for group calls #567

Merged
merged 3 commits into from
Sep 6, 2022

Conversation

dbkr
Copy link
Member

@dbkr dbkr commented Sep 6, 2022

We were waiting for the group call event handler to process the room,
but only if we couldn't get the room from the client - if getRoom returned
a room, we just wouldn't wait. This just uses promises rather than
an event to wait for the room to be ready.

Looks like the failure was that we were getting a room from the store
and therefore not waiting for the event at all, but the fact that the room
was in the store doesn't mean it's been processed. We can't wait for
the event even if we got the room from the store because it may have
already happened in that case, so we'd be waiting forever for an event
that's already fired. Using promises fixes the race.

Requires matrix-org/matrix-js-sdk#2641

We were waiting for the group call event handler to process the room,
but only if we couldn't get the room from the client - if getRoom returned
a room, we just wouldn't wait. This just uses promises rather than
an event to wait for the room to be ready.

Requires matrix-org/matrix-js-sdk#2641
@dbkr dbkr added the T-Defect Something isn't working: bugs, crashes, hangs, vulnerabilities, or other reported problems label Sep 6, 2022
@dbkr dbkr requested a review from a team as a code owner September 6, 2022 11:06
@dbkr dbkr merged commit 7304411 into main Sep 6, 2022
@dbkr dbkr deleted the dbkr/waitUntilRoomReadyForGroupCalls branch December 21, 2022 11:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
T-Defect Something isn't working: bugs, crashes, hangs, vulnerabilities, or other reported problems
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant