@defcomm/meetingsdk 0.6.4 → 0.6.6

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.mjs CHANGED
@@ -816,28 +816,9 @@ var SFUClient = class {
816
816
  case "join_approved": {
817
817
  const requestId = payload.request_id || message.request_id;
818
818
  if (!requestId) break;
819
- const participantId = payload.user_id || payload.participant_id || payload.participantId || payload.request?.user_id || payload.request?.participant_id;
819
+ const participantId = payload.user_id || payload.participant_id;
820
820
  this.pendingJoinRequestId = requestId;
821
821
  this.onJoinApproved(requestId, participantId);
822
- if (this.ws?.readyState === WebSocket.OPEN) {
823
- this.setState("joining");
824
- this.send({
825
- type: "join",
826
- request_id: requestId,
827
- payload: {
828
- token: this.token,
829
- room_code: this.room,
830
- resume_token: this.resumeToken,
831
- display_name: this.joinOptions.displayName,
832
- avatar_url: this.joinOptions.avatarUrl,
833
- // Preserve the media state requested before host approval.
834
- // The approval continuation is a second JOIN, so these values
835
- // must be sent again instead of falling back to the SFU defaults.
836
- audio_muted: this.desiredAudioMuted,
837
- video_muted: this.desiredVideoMuted
838
- }
839
- });
840
- }
841
822
  break;
842
823
  }
843
824
  case "join_rejected": {
@@ -2570,15 +2551,6 @@ var VideoSDKCore = class {
2570
2551
  },
2571
2552
  "rejected"
2572
2553
  );
2573
- this.emitError(
2574
- "JOIN_REJECTED",
2575
- reason || "Your request to join was rejected",
2576
- {
2577
- requestId,
2578
- reason
2579
- },
2580
- false
2581
- );
2582
2554
  },
2583
2555
  onChatMessage: (message) => {
2584
2556
  const msg = {