@naviedu/room-platform-react 0.0.37 → 0.0.38

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.
Files changed (2) hide show
  1. package/index.esm.js +3 -3
  2. package/package.json +1 -1
package/index.esm.js CHANGED
@@ -16795,7 +16795,7 @@ function RoomParticipantActions(param) {
16795
16795
  var resolvedParticipantIdentity = participantIdentity !== null && participantIdentity !== void 0 ? participantIdentity : mappedPresence === null || mappedPresence === void 0 ? void 0 : mappedPresence.participantIdentity;
16796
16796
  var resolvedIsLocal = (_ref = isLocal !== null && isLocal !== void 0 ? isLocal : mappedPresence === null || mappedPresence === void 0 ? void 0 : mappedPresence.isLocal) !== null && _ref !== void 0 ? _ref : false;
16797
16797
  var resolvedIsOnline = isOnline !== null && isOnline !== void 0 ? isOnline : Boolean(mappedPresence);
16798
- var isLiveMode = (controlState === null || controlState === void 0 ? void 0 : controlState.mode) === 'live';
16798
+ var canUsePrivateRoom = (controlState === null || controlState === void 0 ? void 0 : controlState.mode) !== 'live';
16799
16799
  var _useRoomPlatformPrivateRoom = useRoomPlatformPrivateRoom(), cancelPrivateRoom = _useRoomPlatformPrivateRoom.cancelPrivateRoom, currentPrivateRoomOperation = _useRoomPlatformPrivateRoom.currentPrivateRoomOperation;
16800
16800
  var roomPlatformToast = useRoomPlatformToast();
16801
16801
  var _useState = _sliced_to_array$l(useState(false), 2), privateCallHovered = _useState[0], setPrivateCallHovered = _useState[1];
@@ -16804,10 +16804,10 @@ function RoomParticipantActions(param) {
16804
16804
  } : undefined;
16805
16805
  var isSettingActiveSpeaker = Boolean(actionPayload && isActionPending(RoomPlatformAction.SPEAKER_SET, actionPayload));
16806
16806
  var isSettingActiveSpeakerPending = isActionPending(RoomPlatformAction.SPEAKER_SET);
16807
- var isPrivateRoomRinging = isLiveMode && !resolvedIsLocal && (currentPrivateRoomOperation === null || currentPrivateRoomOperation === void 0 ? void 0 : currentPrivateRoomOperation.status) === 'ringing' && currentPrivateRoomOperation.studentExternalActorId === participant.externalActorId;
16807
+ var isPrivateRoomRinging = canUsePrivateRoom && !resolvedIsLocal && (currentPrivateRoomOperation === null || currentPrivateRoomOperation === void 0 ? void 0 : currentPrivateRoomOperation.status) === 'ringing' && currentPrivateRoomOperation.studentExternalActorId === participant.externalActorId;
16808
16808
  var isInvitingPrivateRoom = Boolean(actionPayload && isActionPending(RoomPlatformAction.PRIVATE_ROOM_INVITE, actionPayload));
16809
16809
  var isCancelingPrivateRoom = isActionPending(RoomPlatformAction.PRIVATE_ROOM_CLOSE);
16810
- var canInvitePrivateRoom = Boolean(isLiveMode && !resolvedIsLocal && resolvedIsOnline && actionPayload && hasCapability('private_room:invite') && !currentPrivateRoomOperation);
16810
+ var canInvitePrivateRoom = Boolean(canUsePrivateRoom && !resolvedIsLocal && resolvedIsOnline && actionPayload && hasCapability('private_room:invite') && !currentPrivateRoomOperation);
16811
16811
  var canCancelPrivateRoom = Boolean(isPrivateRoomRinging && hasCapability('private_room:close') && !isCancelingPrivateRoom);
16812
16812
  var setActiveSpeaker = function() {
16813
16813
  if (!actionPayload || isSettingActiveSpeakerPending) return;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@naviedu/room-platform-react",
3
- "version": "0.0.37",
3
+ "version": "0.0.38",
4
4
  "type": "module",
5
5
  "main": "./index.esm.js",
6
6
  "module": "./index.esm.js",