@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.js CHANGED
@@ -4489,9 +4489,9 @@ function createMeetingSession(options) {
4489
4489
  },
4490
4490
  stopWaiting,
4491
4491
  readState: readState2,
4492
- async readExit(connection) {
4492
+ async readExit(connection, held) {
4493
4493
  const meeting = store.snapshot().meeting;
4494
- const pass = options.resolvePass?.() ?? null;
4494
+ const pass = held ?? options.resolvePass?.() ?? null;
4495
4495
  if (meeting === null || pass === null) return void 0;
4496
4496
  try {
4497
4497
  const response = await options.api.request({
@@ -5699,6 +5699,7 @@ function createRoomEngine(options) {
5699
5699
  };
5700
5700
  async function resolveExitAndApply(hint) {
5701
5701
  const connection = current?.connectionIdentity ?? current?.identity ?? store.snapshot().localIdentity ?? null;
5702
+ const heldPass = current?.meetingPass ?? null;
5702
5703
  lastRequest = requestAsNow();
5703
5704
  await dropRoom();
5704
5705
  let server;
@@ -5706,7 +5707,7 @@ function createRoomEngine(options) {
5706
5707
  server = void 0;
5707
5708
  } else {
5708
5709
  try {
5709
- server = await options.readExit(connection);
5710
+ server = await options.readExit(connection, heldPass);
5710
5711
  } catch {
5711
5712
  server = null;
5712
5713
  }
@@ -7043,7 +7044,7 @@ function MeetRuntime(props) {
7043
7044
  effectsStorage,
7044
7045
  resolveDevice: (kind) => devicesHolder.current?.resolve(kind) ?? null,
7045
7046
  // §3.4: on every LiveKit disconnect, ask the server what happened to this connection.
7046
- readExit: (connection) => meetings.readExit(connection),
7047
+ readExit: (connection, pass) => meetings.readExit(connection, pass),
7047
7048
  // S6b: the connection supervisor's ports — the device's network, whether OUR servers (the
7048
7049
  // API and the media server) answer, and the per-tab reload-after-offline marker.
7049
7050
  connection: {