@azure/communication-react 1.3.3-alpha-202210190021.0 → 1.3.3-alpha-202210200021.0

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.
@@ -202,7 +202,7 @@ const _toCommunicationIdentifier = (id) => {
202
202
  // Copyright (c) Microsoft Corporation.
203
203
  // Licensed under the MIT license.
204
204
  // GENERATED FILE. DO NOT EDIT MANUALLY.
205
- var telemetryVersion = '1.3.3-alpha-202210190021.0';
205
+ var telemetryVersion = '1.3.3-alpha-202210200021.0';
206
206
 
207
207
  // Copyright (c) Microsoft Corporation.
208
208
  /**
@@ -17819,8 +17819,16 @@ const overlayProps = (strings, inLobby, remoteParticipants) => {
17819
17819
  * Only grab the first participant because there will only be one in this situation.
17820
17820
  * when starting a call with multiple people the call goes to the connected state and composite goes directly to
17821
17821
  * videoGallery.
17822
+ *
17823
+ * We also need to check the participant state since in a group call the remote participants array will populate just before
17824
+ * the user joins. In this situation we also check the participant states. in a groupCall the state of the participants
17825
+ * will be 'Idle'.
17822
17826
  */
17823
- const outboundCallParticipant = remoteParticipants ? remoteParticipants[0] : undefined;
17827
+ const outboundCallParticipant = remoteParticipants[0] &&
17828
+ ['Ringing', 'Connecting'].includes(remoteParticipants[0].state) &&
17829
+ remoteParticipants.length === 1
17830
+ ? remoteParticipants[0]
17831
+ : undefined;
17824
17832
  return inLobby
17825
17833
  ? overlayPropsWaitingToBeAdmitted(strings)
17826
17834
  : outboundCallParticipant