@defcomm/meetingsdk 0.6.6 → 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
@@ -819,6 +819,22 @@ var SFUClient = class {
819
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
+ audio_muted: this.desiredAudioMuted,
834
+ video_muted: this.desiredVideoMuted
835
+ }
836
+ });
837
+ }
822
838
  break;
823
839
  }
824
840
  case "join_rejected": {