@azure/communication-react 1.3.3-alpha-202208240015.0 → 1.3.3-alpha-202208250017.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.
@@ -192,7 +192,7 @@ const fromFlatCommunicationIdentifier = (id) => {
192
192
  // Copyright (c) Microsoft Corporation.
193
193
  // Licensed under the MIT license.
194
194
  // GENERATED FILE. DO NOT EDIT MANUALLY.
195
- var telemetryVersion = '1.3.3-alpha-202208240015.0';
195
+ var telemetryVersion = '1.3.3-alpha-202208250017.0';
196
196
 
197
197
  // Copyright (c) Microsoft Corporation.
198
198
  /**
@@ -405,7 +405,7 @@ var __awaiter$u = (window && window.__awaiter) || function (thisArg, _arguments,
405
405
  *
406
406
  * @internal
407
407
  */
408
- const _isInCall = (callStatus) => !!callStatus && !['None', 'Disconnected', 'Connecting', 'LocalHold', 'Ringing', 'EarlyMedia'].includes(callStatus);
408
+ const _isInCall = (callStatus) => !!callStatus && !['None', 'Disconnected', 'Connecting', 'Ringing', 'EarlyMedia'].includes(callStatus);
409
409
  /**
410
410
  * Check if the call state represents being in the lobby or waiting to be admitted.
411
411
  *
@@ -14448,14 +14448,15 @@ const getCallCompositePage = (call, previousCall) => {
14448
14448
  // `_isInLobbyOrConnecting` needs to be checked first because `_isInCall` also returns true when call is in lobby.
14449
14449
  if (_isInLobbyOrConnecting(call === null || call === void 0 ? void 0 : call.state)) {
14450
14450
  return 'lobby';
14451
- }
14452
- else if (_isInCall(call === null || call === void 0 ? void 0 : call.state)) {
14453
- return 'call';
14451
+ // `LocalHold` needs to be checked before `isInCall` since it is also a state that's considered in call.
14454
14452
  }
14455
14453
  else if ((call === null || call === void 0 ? void 0 : call.state) === 'LocalHold') {
14456
14454
  /* @conditional-compile-remove(PSTN-calls) */ /* @conditional-compile-remove(one-to-n-calling) */
14457
14455
  return 'hold';
14458
14456
  }
14457
+ else if (_isInCall(call === null || call === void 0 ? void 0 : call.state)) {
14458
+ return 'call';
14459
+ }
14459
14460
  else {
14460
14461
  // When the call object has been constructed after clicking , but before 'connecting' has been
14461
14462
  // set on the call object, we continue to show the configuration screen.