@ai-matrx/meet 0.11.34 → 0.11.36

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1204,6 +1204,10 @@ function useRoom() {
1204
1204
  async (request) => requireEngine(engine, "join").join(request),
1205
1205
  [engine]
1206
1206
  ),
1207
+ checkElsewhere: (0, import_react5.useCallback)(
1208
+ async (roomName) => engine === null ? false : engine.checkElsewhere(roomName),
1209
+ [engine]
1210
+ ),
1207
1211
  leave: (0, import_react5.useCallback)(async () => requireEngine(engine, "leave").leave(), [engine]),
1208
1212
  toggleMicrophone: (0, import_react5.useCallback)(
1209
1213
  async () => requireEngine(engine, "toggleMicrophone").setMicrophoneEnabled(
@@ -4803,6 +4807,10 @@ function PreJoinBody({
4803
4807
  (0, import_react10.useEffect)(() => {
4804
4808
  void host.devices.refresh();
4805
4809
  }, [host]);
4810
+ const { checkElsewhere } = room;
4811
+ (0, import_react10.useEffect)(() => {
4812
+ void checkElsewhere(roomName);
4813
+ }, [checkElsewhere, roomName]);
4806
4814
  const joinWith = (secondDevice) => {
4807
4815
  setJoining(true);
4808
4816
  preview.release();