@ai-matrx/meet 0.11.37 → 0.11.38

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.
@@ -215,6 +215,12 @@ var MEET_ROUTES = {
215
215
  state: "/api/v1/meet/state",
216
216
  /** S4: `withdraw` (stop waiting) or `leave` (close this tab); the pass may ride in the body. */
217
217
  leave: "/api/v1/meet/leave",
218
+ /**
219
+ * S8: a host's browser just called an admission DOOR (`meet_admit` · `meet_deny` ·
220
+ * `meet_undeny` · `meet_admit_all`). Payload-free: the server republishes the room's
221
+ * replicated state (the People badge's waiting count) from the database truth.
222
+ */
223
+ admissionChanged: "/api/v1/meet/admission/changed",
218
224
  /** S4: a pass holder (guests included) saw the recording notice, for this run. */
219
225
  consent: "/api/v1/meet/consent"
220
226
  };
@@ -1143,11 +1149,7 @@ function useRoom() {
1143
1149
  toggleScreenShare: useCallback2(async () => {
1144
1150
  const on = !(local?.screenSharing ?? false);
1145
1151
  await requireEngine(engine, "toggleScreenShare").setScreenShareEnabled(on);
1146
- const sharing = host?.store.snapshot().participants.find((p) => p.isLocal)?.screenSharing ?? false;
1147
- if (host !== null && sharing === on) {
1148
- await host.inRoom.moderate({ action: "present", on }).catch(() => void 0);
1149
- }
1150
- }, [engine, host, local]),
1152
+ }, [engine, local]),
1151
1153
  // S8: a hand is SERVER state (`/moderate raise_hand · lower_hand`, server time), replicated
1152
1154
  // back as the `matrx.hand` attribute — no client sets its own hand on the wire.
1153
1155
  toggleHand: useCallback2(async () => {