@ai-matrx/meet 0.11.54 → 0.11.56

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
@@ -7455,14 +7455,22 @@ function createLiveKitDriver(handlers, options = {}) {
7455
7455
  ...options.roomOptions
7456
7456
  });
7457
7457
  const reasonName = (reason) => reason === void 0 || reason === null ? null : module.DisconnectReason?.[reason] ?? String(reason);
7458
- const roster = () => {
7458
+ const emitRoster = () => {
7459
+ rosterQueued = false;
7460
+ if (room !== created) return;
7459
7461
  const local = snapshotParticipant(created.localParticipant, true);
7460
7462
  const remotes = [...created.remoteParticipants.values()].map(
7461
7463
  (participant) => snapshotParticipant(participant, false)
7462
7464
  );
7463
7465
  handlers.participants([local, ...remotes]);
7464
7466
  };
7465
- projectRoster = roster;
7467
+ let rosterQueued = false;
7468
+ const roster = () => {
7469
+ if (rosterQueued) return;
7470
+ rosterQueued = true;
7471
+ queueMicrotask(emitRoster);
7472
+ };
7473
+ projectRoster = emitRoster;
7466
7474
  created.on(RoomEvent.TrackSubscribed, (track) => {
7467
7475
  if (track.kind !== Track.Kind.Audio || typeof document === "undefined") return;
7468
7476
  if (!remoteAudioPlayback) return;