@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.js CHANGED
@@ -847,28 +847,9 @@ var SFUClient = class {
847
847
  case "join_approved": {
848
848
  const requestId = payload.request_id || message.request_id;
849
849
  if (!requestId) break;
850
- const participantId = payload.user_id || payload.participant_id || payload.participantId || payload.request?.user_id || payload.request?.participant_id;
850
+ const participantId = payload.user_id || payload.participant_id;
851
851
  this.pendingJoinRequestId = requestId;
852
852
  this.onJoinApproved(requestId, participantId);
853
- if (this.ws?.readyState === WebSocket.OPEN) {
854
- this.setState("joining");
855
- this.send({
856
- type: "join",
857
- request_id: requestId,
858
- payload: {
859
- token: this.token,
860
- room_code: this.room,
861
- resume_token: this.resumeToken,
862
- display_name: this.joinOptions.displayName,
863
- avatar_url: this.joinOptions.avatarUrl,
864
- // Preserve the media state requested before host approval.
865
- // The approval continuation is a second JOIN, so these values
866
- // must be sent again instead of falling back to the SFU defaults.
867
- audio_muted: this.desiredAudioMuted,
868
- video_muted: this.desiredVideoMuted
869
- }
870
- });
871
- }
872
853
  break;
873
854
  }
874
855
  case "join_rejected": {