@ai-matrx/meet 0.11.33 → 0.11.35

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.
package/dist/react.cjs CHANGED
@@ -4805,9 +4805,9 @@ function createMeetingSession(options) {
4805
4805
  },
4806
4806
  stopWaiting,
4807
4807
  readState: readState2,
4808
- async readExit(connection) {
4808
+ async readExit(connection, held) {
4809
4809
  const meeting = store.snapshot().meeting;
4810
- const pass = options.resolvePass?.() ?? null;
4810
+ const pass = held ?? options.resolvePass?.() ?? null;
4811
4811
  if (meeting === null || pass === null) return void 0;
4812
4812
  try {
4813
4813
  const response = await options.api.request({
@@ -6013,6 +6013,7 @@ function createRoomEngine(options) {
6013
6013
  };
6014
6014
  async function resolveExitAndApply(hint) {
6015
6015
  const connection = current?.connectionIdentity ?? current?.identity ?? store.snapshot().localIdentity ?? null;
6016
+ const heldPass = current?.meetingPass ?? null;
6016
6017
  lastRequest = requestAsNow();
6017
6018
  await dropRoom();
6018
6019
  let server;
@@ -6020,7 +6021,7 @@ function createRoomEngine(options) {
6020
6021
  server = void 0;
6021
6022
  } else {
6022
6023
  try {
6023
- server = await options.readExit(connection);
6024
+ server = await options.readExit(connection, heldPass);
6024
6025
  } catch {
6025
6026
  server = null;
6026
6027
  }
@@ -7357,7 +7358,7 @@ function MeetRuntime(props) {
7357
7358
  effectsStorage,
7358
7359
  resolveDevice: (kind) => devicesHolder.current?.resolve(kind) ?? null,
7359
7360
  // §3.4: on every LiveKit disconnect, ask the server what happened to this connection.
7360
- readExit: (connection) => meetings.readExit(connection),
7361
+ readExit: (connection, pass) => meetings.readExit(connection, pass),
7361
7362
  // S6b: the connection supervisor's ports — the device's network, whether OUR servers (the
7362
7363
  // API and the media server) answer, and the per-tab reload-after-offline marker.
7363
7364
  connection: {