Skip to content

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

2 participants