@ai-matrx/meet 0.11.54 → 0.11.55

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
@@ -7780,14 +7780,22 @@ function createLiveKitDriver(handlers, options = {}) {
7780
7780
  ...options.roomOptions
7781
7781
  });
7782
7782
  const reasonName = (reason) => reason === void 0 || reason === null ? null : module2.DisconnectReason?.[reason] ?? String(reason);
7783
- const roster = () => {
7783
+ const emitRoster = () => {
7784
+ rosterQueued = false;
7785
+ if (room !== created) return;
7784
7786
  const local = snapshotParticipant(created.localParticipant, true);
7785
7787
  const remotes = [...created.remoteParticipants.values()].map(
7786
7788
  (participant) => snapshotParticipant(participant, false)
7787
7789
  );
7788
7790
  handlers.participants([local, ...remotes]);
7789
7791
  };
7790
- projectRoster = roster;
7792
+ let rosterQueued = false;
7793
+ const roster = () => {
7794
+ if (rosterQueued) return;
7795
+ rosterQueued = true;
7796
+ queueMicrotask(emitRoster);
7797
+ };
7798
+ projectRoster = emitRoster;
7791
7799
  created.on(RoomEvent.TrackSubscribed, (track) => {
7792
7800
  if (track.kind !== Track.Kind.Audio || typeof document === "undefined") return;
7793
7801
  if (!remoteAudioPlayback) return;