@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.mjs CHANGED
@@ -816,7 +816,7 @@ 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
822
  if (this.ws?.readyState === WebSocket.OPEN) {
@@ -830,9 +830,6 @@ var SFUClient = class {
830
830
  resume_token: this.resumeToken,
831
831
  display_name: this.joinOptions.displayName,
832
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
833
  audio_muted: this.desiredAudioMuted,
837
834
  video_muted: this.desiredVideoMuted
838
835
  }