@cometchat/calls-sdk-react-native 5.0.0-beta.13 → 5.0.0-beta.14

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
@@ -1170,7 +1170,6 @@ const togglePinParticipant = (participantId, type) => {
1170
1170
  }
1171
1171
  };
1172
1172
  useParticipantStore.subscribe((state) => state.virtualParticipants, (virtualParticipants) => {
1173
- console.log("Virtual participants updated:", virtualParticipants);
1174
1173
  if (virtualParticipants && virtualParticipants.length > 0) {
1175
1174
  setLayout(LAYOUT.SIDEBAR, true);
1176
1175
  } else {
@@ -1270,7 +1269,7 @@ function sendInitialConfig() {
1270
1269
  user_agent: useBaseStore.getState().userAgent,
1271
1270
  meeting_id: conference.room?.xmpp?.getJid?.() ?? config.sessionId,
1272
1271
  mode: config.layout,
1273
- commit_id: "f91fdef5"
1272
+ commit_id: "8fa18c98"
1274
1273
  };
1275
1274
  conference.room.addOrReplaceInPresence(CONFERENCE_COMMANDS.initialConfig, { attributes });
1276
1275
  }
@@ -1659,7 +1658,6 @@ const toggleVideoTrack = () => {
1659
1658
  }
1660
1659
  };
1661
1660
  useTracksStore.subscribe((state) => state.tracks.find((t) => t.mediaType === MEDIA_TYPE.AUDIO && t.local)?.muted, (muted, prevMuted) => {
1662
- console.log("Local participant muted state changed audio:", muted, prevMuted);
1663
1661
  const audioTrack = getLocalTrack(MEDIA_TYPE.AUDIO)?.originalTrack;
1664
1662
  if (muted && audioTrack) {
1665
1663
  audioTrack.mute();
@@ -1671,7 +1669,6 @@ useTracksStore.subscribe((state) => state.tracks.find((t) => t.mediaType === MED
1671
1669
  }
1672
1670
  });
1673
1671
  useTracksStore.subscribe((state) => state.tracks.find((t) => t.mediaType === MEDIA_TYPE.VIDEO && t.local)?.muted, (videoMuted, prevVideoMuted) => {
1674
- console.log("Local participant muted state changed video:", videoMuted);
1675
1672
  const videoTrack = getLocalTrack(MEDIA_TYPE.VIDEO)?.originalTrack;
1676
1673
  if (videoMuted && videoTrack) {
1677
1674
  videoTrack.mute();
@@ -2142,10 +2139,6 @@ function initBaseStoreSubscriptions() {
2142
2139
  });
2143
2140
  unsubscribeFunctions.push(unsubscribeVideoInputDevices);
2144
2141
  useBaseStore.subscribe((state) => state.previewVideoTrack, (previewVideoTrack, prevPreviewVideoTrack) => {
2145
- console.log("Preview video track updated:", {
2146
- previewVideoTrack,
2147
- prevPreviewVideoTrack
2148
- });
2149
2142
  if (prevPreviewVideoTrack) {
2150
2143
  if (prevPreviewVideoTrack.disposed !== true) {
2151
2144
  prevPreviewVideoTrack.dispose();
@@ -2632,7 +2625,6 @@ var ConferenceListener = class {
2632
2625
  });
2633
2626
  }
2634
2627
  onRecorderStateChanged(session) {
2635
- console.log("Recorder state changed onRecorderStateChanged:", session, session.getStatus());
2636
2628
  if (session) {
2637
2629
  const sessionId = session.getID();
2638
2630
  if (sessionId) {
@@ -2687,8 +2679,7 @@ var ConferenceListener = class {
2687
2679
  }
2688
2680
  }
2689
2681
  }
2690
- onParticipantSourceUpdated(participant) {
2691
- console.log("SOURCE_UPDATED", participant);
2682
+ onParticipantSourceUpdated(_participant) {
2692
2683
  setReceiverConstraints();
2693
2684
  }
2694
2685
  onConferenceCreatedTimestamp(timestamp) {
@@ -2703,7 +2694,6 @@ var ConferenceListener = class {
2703
2694
  }
2704
2695
  }
2705
2696
  onLocalStatsUpdated(stats) {
2706
- console.log("LOCAL_STATS_UPDATED", stats);
2707
2697
  const localParticipant = useParticipantStore.getState().localParticipant;
2708
2698
  if (stats.connectionQuality) {
2709
2699
  useConferenceStore.setState((state) => {
@@ -2714,7 +2704,6 @@ var ConferenceListener = class {
2714
2704
  }
2715
2705
  }
2716
2706
  onRemoteStatsUpdated(id, stats) {
2717
- console.log("REMOTE_STATS_UPDATED", id, stats);
2718
2707
  if (stats.connectionQuality) {
2719
2708
  useConferenceStore.setState((state) => {
2720
2709
  const connectionQuality = new Map(state.connectionQuality);
@@ -3510,102 +3499,71 @@ function setupNativeEventListeners() {
3510
3499
  if (!eventEmitter) {
3511
3500
  return;
3512
3501
  }
3513
- const muteAudioSub = eventEmitter.addListener(constants$1.MUTE_AUDIO, (event) => {
3514
- console.log("Event received from EventEmitter:", constants$1.MUTE_AUDIO, event);
3502
+ const muteAudioSub = eventEmitter.addListener(constants$1.MUTE_AUDIO, () => {
3515
3503
  muteAudioTrack();
3516
3504
  });
3517
3505
  subscriptions.push(muteAudioSub);
3518
- const unMuteAudioSub = eventEmitter.addListener(constants$1.UNMUTE_AUDIO, (event) => {
3519
- console.log("Event received from EventEmitter:", constants$1.UNMUTE_AUDIO, event);
3506
+ const unMuteAudioSub = eventEmitter.addListener(constants$1.UNMUTE_AUDIO, () => {
3520
3507
  unMuteAudioTrack();
3521
3508
  });
3522
3509
  subscriptions.push(unMuteAudioSub);
3523
- const pauseVideoSub = eventEmitter.addListener(constants$1.PAUSE_VIDEO, (event) => {
3524
- console.log("Event received from EventEmitter:", constants$1.PAUSE_VIDEO, event);
3510
+ const pauseVideoSub = eventEmitter.addListener(constants$1.PAUSE_VIDEO, () => {
3525
3511
  pauseVideoTrack();
3526
3512
  });
3527
3513
  subscriptions.push(pauseVideoSub);
3528
- const resumeVideoSub = eventEmitter.addListener(constants$1.RESUME_VIDEO, (event) => {
3529
- console.log("Event received from EventEmitter:", constants$1.RESUME_VIDEO, event);
3514
+ const resumeVideoSub = eventEmitter.addListener(constants$1.RESUME_VIDEO, () => {
3530
3515
  resumeVideoTrack();
3531
3516
  });
3532
3517
  subscriptions.push(resumeVideoSub);
3533
- const enablePiPSub = eventEmitter.addListener(constants$1.ENABLE_PICTURE_IN_PICTURE_LAYOUT, (event) => {
3534
- console.log("Event received from EventEmitter:", constants$1.ENABLE_PICTURE_IN_PICTURE_LAYOUT, event);
3518
+ const enablePiPSub = eventEmitter.addListener(constants$1.ENABLE_PICTURE_IN_PICTURE_LAYOUT, () => {
3535
3519
  enablePictureInPictureLayout();
3536
3520
  });
3537
3521
  subscriptions.push(enablePiPSub);
3538
- const disablePiPSub = eventEmitter.addListener(constants$1.DISABLE_PICTURE_IN_PICTURE_LAYOUT, (event) => {
3539
- console.log("Event received from EventEmitter:", constants$1.DISABLE_PICTURE_IN_PICTURE_LAYOUT, event);
3522
+ const disablePiPSub = eventEmitter.addListener(constants$1.DISABLE_PICTURE_IN_PICTURE_LAYOUT, () => {
3540
3523
  disablePictureInPictureLayout();
3541
3524
  });
3542
3525
  subscriptions.push(disablePiPSub);
3543
- const leaveSessionSub = eventEmitter.addListener(constants$1.LEAVE_SESSION, (event) => {
3544
- console.log("Event received from EventEmitter:", constants$1.LEAVE_SESSION, event);
3526
+ const leaveSessionSub = eventEmitter.addListener(constants$1.LEAVE_SESSION, () => {
3545
3527
  leaveSession();
3546
3528
  });
3547
3529
  subscriptions.push(leaveSessionSub);
3548
- const raiseHandSub = eventEmitter.addListener(constants$1.RAISE_HAND, (event) => {
3549
- console.log("Event received from EventEmitter:", constants$1.RAISE_HAND, event);
3550
- });
3530
+ const raiseHandSub = eventEmitter.addListener(constants$1.RAISE_HAND, () => {});
3551
3531
  subscriptions.push(raiseHandSub);
3552
- const lowerHandSub = eventEmitter.addListener(constants$1.LOWER_HAND, (event) => {
3553
- console.log("Event received from EventEmitter:", constants$1.LOWER_HAND, event);
3554
- });
3532
+ const lowerHandSub = eventEmitter.addListener(constants$1.LOWER_HAND, () => {});
3555
3533
  subscriptions.push(lowerHandSub);
3556
3534
  const muteParticipantSub = eventEmitter.addListener(constants$1.MUTE_PARTICIPANT, (event) => {
3557
- console.log("Event received from EventEmitter:", constants$1.MUTE_PARTICIPANT, event);
3558
3535
  if (typeof event.pid === "string") {
3559
3536
  muteParticipant(event.pid);
3560
3537
  }
3561
3538
  });
3562
3539
  subscriptions.push(muteParticipantSub);
3563
3540
  const pauseParticipantVideoSub = eventEmitter.addListener(constants$1.PAUSE_PARTICIPANT_VIDEO, (event) => {
3564
- console.log("Event received from EventEmitter:", constants$1.PAUSE_PARTICIPANT_VIDEO, event);
3565
3541
  if (typeof event.pid === "string") {
3566
3542
  pauseParticipantVideo(event.pid);
3567
3543
  }
3568
3544
  });
3569
3545
  subscriptions.push(pauseParticipantVideoSub);
3570
- const pinParticipantSub = eventEmitter.addListener(constants$1.PIN_PARTICIPANT, (event) => {
3571
- console.log("Event received from EventEmitter:", constants$1.PIN_PARTICIPANT, event);
3572
- });
3546
+ const pinParticipantSub = eventEmitter.addListener(constants$1.PIN_PARTICIPANT, () => {});
3573
3547
  subscriptions.push(pinParticipantSub);
3574
- const unPinParticipantSub = eventEmitter.addListener(constants$1.UNPIN_PARTICIPANT, (event) => {
3575
- console.log("Event received from EventEmitter:", constants$1.UNPIN_PARTICIPANT, event);
3576
- });
3548
+ const unPinParticipantSub = eventEmitter.addListener(constants$1.UNPIN_PARTICIPANT, () => {});
3577
3549
  subscriptions.push(unPinParticipantSub);
3578
- const setAudioModeSub = eventEmitter.addListener(constants$1.SET_AUDIO_MODE, (event) => {
3579
- console.log("Event received from EventEmitter:", constants$1.SET_AUDIO_MODE, event);
3580
- });
3550
+ const setAudioModeSub = eventEmitter.addListener(constants$1.SET_AUDIO_MODE, () => {});
3581
3551
  subscriptions.push(setAudioModeSub);
3582
- const setLayoutSub = eventEmitter.addListener(constants$1.SET_LAYOUT, (event) => {
3583
- console.log("Event received from EventEmitter:", constants$1.SET_LAYOUT, event);
3584
- });
3552
+ const setLayoutSub = eventEmitter.addListener(constants$1.SET_LAYOUT, () => {});
3585
3553
  subscriptions.push(setLayoutSub);
3586
- const switchCameraSub = eventEmitter.addListener(constants$1.SWITCH_CAMERA, (event) => {
3587
- console.log("Event received from EventEmitter:", constants$1.SWITCH_CAMERA, event);
3554
+ const switchCameraSub = eventEmitter.addListener(constants$1.SWITCH_CAMERA, () => {
3588
3555
  switchCamera();
3589
3556
  });
3590
3557
  subscriptions.push(switchCameraSub);
3591
- const startRecordingSub = eventEmitter.addListener(constants$1.START_RECORDING, (event) => {
3592
- console.log("Event received from EventEmitter:", constants$1.START_RECORDING, event);
3593
- });
3558
+ const startRecordingSub = eventEmitter.addListener(constants$1.START_RECORDING, () => {});
3594
3559
  subscriptions.push(startRecordingSub);
3595
- const stopRecordingSub = eventEmitter.addListener(constants$1.STOP_RECORDING, (event) => {
3596
- console.log("Event received from EventEmitter:", constants$1.STOP_RECORDING, event);
3597
- });
3560
+ const stopRecordingSub = eventEmitter.addListener(constants$1.STOP_RECORDING, () => {});
3598
3561
  subscriptions.push(stopRecordingSub);
3599
- const startScreenSharingSub = eventEmitter.addListener(constants$1.START_SCREEN_SHARE, (event) => {
3600
- console.log("Event received from EventEmitter:", constants$1.START_SCREEN_SHARE, event);
3601
- });
3562
+ const startScreenSharingSub = eventEmitter.addListener(constants$1.START_SCREEN_SHARE, () => {});
3602
3563
  subscriptions.push(startScreenSharingSub);
3603
- const stopScreenShareSub = eventEmitter.addListener(constants$1.STOP_SCREEN_SHARE, (event) => {
3604
- console.log("Event received from EventEmitter:", constants$1.STOP_SCREEN_SHARE, event);
3605
- });
3564
+ const stopScreenShareSub = eventEmitter.addListener(constants$1.STOP_SCREEN_SHARE, () => {});
3606
3565
  subscriptions.push(stopScreenShareSub);
3607
3566
  eventEmitter.addListener(constants$1.SET_CHAT_BUTTON_UNREAD_COUNT, (event) => {
3608
- console.log("Event received from EventEmitter:", constants$1.SET_CHAT_BUTTON_UNREAD_COUNT, event);
3609
3567
  if (typeof event.count === "number") {
3610
3568
  setChatButtonUnreadCount(event.count);
3611
3569
  }
@@ -5057,7 +5015,6 @@ function TileLayout() {
5057
5015
  if (e.viewableItems.length === 0) {
5058
5016
  return;
5059
5017
  }
5060
- console.log("onViewableItemsChanged", e.viewableItems[0].key, e.viewableItems[e.viewableItems.length - 1].key);
5061
5018
  },
5062
5019
  showsHorizontalScrollIndicator: false,
5063
5020
  horizontal: false,
@@ -6195,7 +6152,6 @@ const IdealTimeoutModal = ({ style = {} }) => {
6195
6152
  ]);
6196
6153
  (0, react.useEffect)(() => {
6197
6154
  const timer = setInterval(() => {
6198
- console.log("setInterval is running for IdealTimeoutModal");
6199
6155
  if (!idleTimeoutModalVisible) {
6200
6156
  clearInterval(timer);
6201
6157
  return;
@@ -6838,7 +6794,6 @@ function CallUI(props) {
6838
6794
  }, [props.sessionSettings.sdkPlatform]);
6839
6795
  (0, react.useEffect)(() => {
6840
6796
  const sub = AudioModeEventEmitter.addListener(AudioModeModule_default.DEVICE_CHANGE_EVENT, (e) => {
6841
- console.log("AudioMode.DEVICE_CHANGE_EVENT", e);
6842
6797
  useBaseStore.setState({ audioModes: e });
6843
6798
  });
6844
6799
  return () => {
package/dist/index.mjs CHANGED
@@ -1138,7 +1138,6 @@ const togglePinParticipant = (participantId, type) => {
1138
1138
  }
1139
1139
  };
1140
1140
  useParticipantStore.subscribe((state) => state.virtualParticipants, (virtualParticipants) => {
1141
- console.log("Virtual participants updated:", virtualParticipants);
1142
1141
  if (virtualParticipants && virtualParticipants.length > 0) {
1143
1142
  setLayout(LAYOUT.SIDEBAR, true);
1144
1143
  } else {
@@ -1238,7 +1237,7 @@ function sendInitialConfig() {
1238
1237
  user_agent: useBaseStore.getState().userAgent,
1239
1238
  meeting_id: conference.room?.xmpp?.getJid?.() ?? config.sessionId,
1240
1239
  mode: config.layout,
1241
- commit_id: "f91fdef5"
1240
+ commit_id: "8fa18c98"
1242
1241
  };
1243
1242
  conference.room.addOrReplaceInPresence(CONFERENCE_COMMANDS.initialConfig, { attributes });
1244
1243
  }
@@ -1627,7 +1626,6 @@ const toggleVideoTrack = () => {
1627
1626
  }
1628
1627
  };
1629
1628
  useTracksStore.subscribe((state) => state.tracks.find((t) => t.mediaType === MEDIA_TYPE.AUDIO && t.local)?.muted, (muted, prevMuted) => {
1630
- console.log("Local participant muted state changed audio:", muted, prevMuted);
1631
1629
  const audioTrack = getLocalTrack(MEDIA_TYPE.AUDIO)?.originalTrack;
1632
1630
  if (muted && audioTrack) {
1633
1631
  audioTrack.mute();
@@ -1639,7 +1637,6 @@ useTracksStore.subscribe((state) => state.tracks.find((t) => t.mediaType === MED
1639
1637
  }
1640
1638
  });
1641
1639
  useTracksStore.subscribe((state) => state.tracks.find((t) => t.mediaType === MEDIA_TYPE.VIDEO && t.local)?.muted, (videoMuted, prevVideoMuted) => {
1642
- console.log("Local participant muted state changed video:", videoMuted);
1643
1640
  const videoTrack = getLocalTrack(MEDIA_TYPE.VIDEO)?.originalTrack;
1644
1641
  if (videoMuted && videoTrack) {
1645
1642
  videoTrack.mute();
@@ -2110,10 +2107,6 @@ function initBaseStoreSubscriptions() {
2110
2107
  });
2111
2108
  unsubscribeFunctions.push(unsubscribeVideoInputDevices);
2112
2109
  useBaseStore.subscribe((state) => state.previewVideoTrack, (previewVideoTrack, prevPreviewVideoTrack) => {
2113
- console.log("Preview video track updated:", {
2114
- previewVideoTrack,
2115
- prevPreviewVideoTrack
2116
- });
2117
2110
  if (prevPreviewVideoTrack) {
2118
2111
  if (prevPreviewVideoTrack.disposed !== true) {
2119
2112
  prevPreviewVideoTrack.dispose();
@@ -2600,7 +2593,6 @@ var ConferenceListener = class {
2600
2593
  });
2601
2594
  }
2602
2595
  onRecorderStateChanged(session) {
2603
- console.log("Recorder state changed onRecorderStateChanged:", session, session.getStatus());
2604
2596
  if (session) {
2605
2597
  const sessionId = session.getID();
2606
2598
  if (sessionId) {
@@ -2655,8 +2647,7 @@ var ConferenceListener = class {
2655
2647
  }
2656
2648
  }
2657
2649
  }
2658
- onParticipantSourceUpdated(participant) {
2659
- console.log("SOURCE_UPDATED", participant);
2650
+ onParticipantSourceUpdated(_participant) {
2660
2651
  setReceiverConstraints();
2661
2652
  }
2662
2653
  onConferenceCreatedTimestamp(timestamp) {
@@ -2671,7 +2662,6 @@ var ConferenceListener = class {
2671
2662
  }
2672
2663
  }
2673
2664
  onLocalStatsUpdated(stats) {
2674
- console.log("LOCAL_STATS_UPDATED", stats);
2675
2665
  const localParticipant = useParticipantStore.getState().localParticipant;
2676
2666
  if (stats.connectionQuality) {
2677
2667
  useConferenceStore.setState((state) => {
@@ -2682,7 +2672,6 @@ var ConferenceListener = class {
2682
2672
  }
2683
2673
  }
2684
2674
  onRemoteStatsUpdated(id, stats) {
2685
- console.log("REMOTE_STATS_UPDATED", id, stats);
2686
2675
  if (stats.connectionQuality) {
2687
2676
  useConferenceStore.setState((state) => {
2688
2677
  const connectionQuality = new Map(state.connectionQuality);
@@ -3478,102 +3467,71 @@ function setupNativeEventListeners() {
3478
3467
  if (!eventEmitter) {
3479
3468
  return;
3480
3469
  }
3481
- const muteAudioSub = eventEmitter.addListener(constants$1.MUTE_AUDIO, (event) => {
3482
- console.log("Event received from EventEmitter:", constants$1.MUTE_AUDIO, event);
3470
+ const muteAudioSub = eventEmitter.addListener(constants$1.MUTE_AUDIO, () => {
3483
3471
  muteAudioTrack();
3484
3472
  });
3485
3473
  subscriptions.push(muteAudioSub);
3486
- const unMuteAudioSub = eventEmitter.addListener(constants$1.UNMUTE_AUDIO, (event) => {
3487
- console.log("Event received from EventEmitter:", constants$1.UNMUTE_AUDIO, event);
3474
+ const unMuteAudioSub = eventEmitter.addListener(constants$1.UNMUTE_AUDIO, () => {
3488
3475
  unMuteAudioTrack();
3489
3476
  });
3490
3477
  subscriptions.push(unMuteAudioSub);
3491
- const pauseVideoSub = eventEmitter.addListener(constants$1.PAUSE_VIDEO, (event) => {
3492
- console.log("Event received from EventEmitter:", constants$1.PAUSE_VIDEO, event);
3478
+ const pauseVideoSub = eventEmitter.addListener(constants$1.PAUSE_VIDEO, () => {
3493
3479
  pauseVideoTrack();
3494
3480
  });
3495
3481
  subscriptions.push(pauseVideoSub);
3496
- const resumeVideoSub = eventEmitter.addListener(constants$1.RESUME_VIDEO, (event) => {
3497
- console.log("Event received from EventEmitter:", constants$1.RESUME_VIDEO, event);
3482
+ const resumeVideoSub = eventEmitter.addListener(constants$1.RESUME_VIDEO, () => {
3498
3483
  resumeVideoTrack();
3499
3484
  });
3500
3485
  subscriptions.push(resumeVideoSub);
3501
- const enablePiPSub = eventEmitter.addListener(constants$1.ENABLE_PICTURE_IN_PICTURE_LAYOUT, (event) => {
3502
- console.log("Event received from EventEmitter:", constants$1.ENABLE_PICTURE_IN_PICTURE_LAYOUT, event);
3486
+ const enablePiPSub = eventEmitter.addListener(constants$1.ENABLE_PICTURE_IN_PICTURE_LAYOUT, () => {
3503
3487
  enablePictureInPictureLayout();
3504
3488
  });
3505
3489
  subscriptions.push(enablePiPSub);
3506
- const disablePiPSub = eventEmitter.addListener(constants$1.DISABLE_PICTURE_IN_PICTURE_LAYOUT, (event) => {
3507
- console.log("Event received from EventEmitter:", constants$1.DISABLE_PICTURE_IN_PICTURE_LAYOUT, event);
3490
+ const disablePiPSub = eventEmitter.addListener(constants$1.DISABLE_PICTURE_IN_PICTURE_LAYOUT, () => {
3508
3491
  disablePictureInPictureLayout();
3509
3492
  });
3510
3493
  subscriptions.push(disablePiPSub);
3511
- const leaveSessionSub = eventEmitter.addListener(constants$1.LEAVE_SESSION, (event) => {
3512
- console.log("Event received from EventEmitter:", constants$1.LEAVE_SESSION, event);
3494
+ const leaveSessionSub = eventEmitter.addListener(constants$1.LEAVE_SESSION, () => {
3513
3495
  leaveSession();
3514
3496
  });
3515
3497
  subscriptions.push(leaveSessionSub);
3516
- const raiseHandSub = eventEmitter.addListener(constants$1.RAISE_HAND, (event) => {
3517
- console.log("Event received from EventEmitter:", constants$1.RAISE_HAND, event);
3518
- });
3498
+ const raiseHandSub = eventEmitter.addListener(constants$1.RAISE_HAND, () => {});
3519
3499
  subscriptions.push(raiseHandSub);
3520
- const lowerHandSub = eventEmitter.addListener(constants$1.LOWER_HAND, (event) => {
3521
- console.log("Event received from EventEmitter:", constants$1.LOWER_HAND, event);
3522
- });
3500
+ const lowerHandSub = eventEmitter.addListener(constants$1.LOWER_HAND, () => {});
3523
3501
  subscriptions.push(lowerHandSub);
3524
3502
  const muteParticipantSub = eventEmitter.addListener(constants$1.MUTE_PARTICIPANT, (event) => {
3525
- console.log("Event received from EventEmitter:", constants$1.MUTE_PARTICIPANT, event);
3526
3503
  if (typeof event.pid === "string") {
3527
3504
  muteParticipant(event.pid);
3528
3505
  }
3529
3506
  });
3530
3507
  subscriptions.push(muteParticipantSub);
3531
3508
  const pauseParticipantVideoSub = eventEmitter.addListener(constants$1.PAUSE_PARTICIPANT_VIDEO, (event) => {
3532
- console.log("Event received from EventEmitter:", constants$1.PAUSE_PARTICIPANT_VIDEO, event);
3533
3509
  if (typeof event.pid === "string") {
3534
3510
  pauseParticipantVideo(event.pid);
3535
3511
  }
3536
3512
  });
3537
3513
  subscriptions.push(pauseParticipantVideoSub);
3538
- const pinParticipantSub = eventEmitter.addListener(constants$1.PIN_PARTICIPANT, (event) => {
3539
- console.log("Event received from EventEmitter:", constants$1.PIN_PARTICIPANT, event);
3540
- });
3514
+ const pinParticipantSub = eventEmitter.addListener(constants$1.PIN_PARTICIPANT, () => {});
3541
3515
  subscriptions.push(pinParticipantSub);
3542
- const unPinParticipantSub = eventEmitter.addListener(constants$1.UNPIN_PARTICIPANT, (event) => {
3543
- console.log("Event received from EventEmitter:", constants$1.UNPIN_PARTICIPANT, event);
3544
- });
3516
+ const unPinParticipantSub = eventEmitter.addListener(constants$1.UNPIN_PARTICIPANT, () => {});
3545
3517
  subscriptions.push(unPinParticipantSub);
3546
- const setAudioModeSub = eventEmitter.addListener(constants$1.SET_AUDIO_MODE, (event) => {
3547
- console.log("Event received from EventEmitter:", constants$1.SET_AUDIO_MODE, event);
3548
- });
3518
+ const setAudioModeSub = eventEmitter.addListener(constants$1.SET_AUDIO_MODE, () => {});
3549
3519
  subscriptions.push(setAudioModeSub);
3550
- const setLayoutSub = eventEmitter.addListener(constants$1.SET_LAYOUT, (event) => {
3551
- console.log("Event received from EventEmitter:", constants$1.SET_LAYOUT, event);
3552
- });
3520
+ const setLayoutSub = eventEmitter.addListener(constants$1.SET_LAYOUT, () => {});
3553
3521
  subscriptions.push(setLayoutSub);
3554
- const switchCameraSub = eventEmitter.addListener(constants$1.SWITCH_CAMERA, (event) => {
3555
- console.log("Event received from EventEmitter:", constants$1.SWITCH_CAMERA, event);
3522
+ const switchCameraSub = eventEmitter.addListener(constants$1.SWITCH_CAMERA, () => {
3556
3523
  switchCamera();
3557
3524
  });
3558
3525
  subscriptions.push(switchCameraSub);
3559
- const startRecordingSub = eventEmitter.addListener(constants$1.START_RECORDING, (event) => {
3560
- console.log("Event received from EventEmitter:", constants$1.START_RECORDING, event);
3561
- });
3526
+ const startRecordingSub = eventEmitter.addListener(constants$1.START_RECORDING, () => {});
3562
3527
  subscriptions.push(startRecordingSub);
3563
- const stopRecordingSub = eventEmitter.addListener(constants$1.STOP_RECORDING, (event) => {
3564
- console.log("Event received from EventEmitter:", constants$1.STOP_RECORDING, event);
3565
- });
3528
+ const stopRecordingSub = eventEmitter.addListener(constants$1.STOP_RECORDING, () => {});
3566
3529
  subscriptions.push(stopRecordingSub);
3567
- const startScreenSharingSub = eventEmitter.addListener(constants$1.START_SCREEN_SHARE, (event) => {
3568
- console.log("Event received from EventEmitter:", constants$1.START_SCREEN_SHARE, event);
3569
- });
3530
+ const startScreenSharingSub = eventEmitter.addListener(constants$1.START_SCREEN_SHARE, () => {});
3570
3531
  subscriptions.push(startScreenSharingSub);
3571
- const stopScreenShareSub = eventEmitter.addListener(constants$1.STOP_SCREEN_SHARE, (event) => {
3572
- console.log("Event received from EventEmitter:", constants$1.STOP_SCREEN_SHARE, event);
3573
- });
3532
+ const stopScreenShareSub = eventEmitter.addListener(constants$1.STOP_SCREEN_SHARE, () => {});
3574
3533
  subscriptions.push(stopScreenShareSub);
3575
3534
  eventEmitter.addListener(constants$1.SET_CHAT_BUTTON_UNREAD_COUNT, (event) => {
3576
- console.log("Event received from EventEmitter:", constants$1.SET_CHAT_BUTTON_UNREAD_COUNT, event);
3577
3535
  if (typeof event.count === "number") {
3578
3536
  setChatButtonUnreadCount(event.count);
3579
3537
  }
@@ -5025,7 +4983,6 @@ function TileLayout() {
5025
4983
  if (e.viewableItems.length === 0) {
5026
4984
  return;
5027
4985
  }
5028
- console.log("onViewableItemsChanged", e.viewableItems[0].key, e.viewableItems[e.viewableItems.length - 1].key);
5029
4986
  },
5030
4987
  showsHorizontalScrollIndicator: false,
5031
4988
  horizontal: false,
@@ -6163,7 +6120,6 @@ const IdealTimeoutModal = ({ style = {} }) => {
6163
6120
  ]);
6164
6121
  useEffect(() => {
6165
6122
  const timer = setInterval(() => {
6166
- console.log("setInterval is running for IdealTimeoutModal");
6167
6123
  if (!idleTimeoutModalVisible) {
6168
6124
  clearInterval(timer);
6169
6125
  return;
@@ -6806,7 +6762,6 @@ function CallUI(props) {
6806
6762
  }, [props.sessionSettings.sdkPlatform]);
6807
6763
  useEffect(() => {
6808
6764
  const sub = AudioModeEventEmitter.addListener(AudioModeModule_default.DEVICE_CHANGE_EVENT, (e) => {
6809
- console.log("AudioMode.DEVICE_CHANGE_EVENT", e);
6810
6765
  useBaseStore.setState({ audioModes: e });
6811
6766
  });
6812
6767
  return () => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cometchat/calls-sdk-react-native",
3
- "version": "5.0.0-beta.13",
3
+ "version": "5.0.0-beta.14",
4
4
  "description": "CometChat Calls SDK for React Native provides voice and video calling capabilities for React Native applications.",
5
5
  "private": false,
6
6
  "main": "dist/index.js",