@defcomm/meetingsdk 0.6.5 → 0.6.7

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,7 +847,7 @@ 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
853
  if (this.ws?.readyState === WebSocket.OPEN) {
@@ -861,9 +861,6 @@ var SFUClient = class {
861
861
  resume_token: this.resumeToken,
862
862
  display_name: this.joinOptions.displayName,
863
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
864
  audio_muted: this.desiredAudioMuted,
868
865
  video_muted: this.desiredVideoMuted
869
866
  }