@ai-matrx/meet 0.11.33 → 0.11.34

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/index.cjs CHANGED
@@ -5455,9 +5455,9 @@ function createMeetingSession(options) {
5455
5455
  },
5456
5456
  stopWaiting,
5457
5457
  readState: readState2,
5458
- async readExit(connection) {
5458
+ async readExit(connection, held) {
5459
5459
  const meeting = store.snapshot().meeting;
5460
- const pass = options.resolvePass?.() ?? null;
5460
+ const pass = held ?? options.resolvePass?.() ?? null;
5461
5461
  if (meeting === null || pass === null) return void 0;
5462
5462
  try {
5463
5463
  const response = await options.api.request({
@@ -6805,6 +6805,7 @@ function createRoomEngine(options) {
6805
6805
  };
6806
6806
  async function resolveExitAndApply(hint) {
6807
6807
  const connection = current?.connectionIdentity ?? current?.identity ?? store.snapshot().localIdentity ?? null;
6808
+ const heldPass = current?.meetingPass ?? null;
6808
6809
  lastRequest = requestAsNow();
6809
6810
  await dropRoom();
6810
6811
  let server;
@@ -6812,7 +6813,7 @@ function createRoomEngine(options) {
6812
6813
  server = void 0;
6813
6814
  } else {
6814
6815
  try {
6815
- server = await options.readExit(connection);
6816
+ server = await options.readExit(connection, heldPass);
6816
6817
  } catch {
6817
6818
  server = null;
6818
6819
  }