Actually wait for the right event

& update js-sdk dependency
This commit is contained in:
David Baker
2022-09-01 13:32:11 +01:00
parent 1b4f097b1c
commit 48ad4d040d
3 changed files with 4 additions and 4 deletions

View File

@@ -58,7 +58,7 @@ export const useLoadGroupCall = (
resolve(room);
}
};
client.on(ClientEvent.Room, onRoomEvent);
client.on(GroupCallEventHandlerEvent.Room, onRoomEvent);
});
// race the promise with a timeout so we don't