@defcomm/meetingsdk 0.6.5 → 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": {